瀏覽代碼

Add "tcp_nodelay" in the list of supported connection parameters.

[ci skip]
Daniele Alessandri 12 年之前
父節點
當前提交
9675626aac
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      lib/Predis/Connection/PhpiredisStreamConnection.php
  2. 1 0
      lib/Predis/Connection/StreamConnection.php

+ 1 - 0
lib/Predis/Connection/PhpiredisStreamConnection.php

@@ -40,6 +40,7 @@ use Predis\Command\CommandInterface;
  *  - timeout: timeout to perform the connection.
  *  - read_write_timeout: timeout of read / write operations.
  *  - async_connect: performs the connection asynchronously.
+ *  - tcp_nodelay: enables or disables Nagle's algorithm for coalescing.
  *  - persistent: the connection is left intact after a GC collection.
  *
  * @link https://github.com/nrk/phpiredis

+ 1 - 0
lib/Predis/Connection/StreamConnection.php

@@ -27,6 +27,7 @@ use Predis\Iterator\MultiBulkResponseSimple;
  *  - timeout: timeout to perform the connection.
  *  - read_write_timeout: timeout of read / write operations.
  *  - async_connect: performs the connection asynchronously.
+ *  - tcp_nodelay: enables or disables Nagle's algorithm for coalescing.
  *  - persistent: the connection is left intact after a GC collection.
  *  - iterable_multibulk: multibulk replies treated as iterable objects.
  *