ソースを参照

Update AsyncTcpConnection.php

walkor 9 年 前
コミット
7293906a78
1 ファイル変更1 行追加0 行削除
  1. 1 0
      Connection/AsyncTcpConnection.php

+ 1 - 0
Connection/AsyncTcpConnection.php

@@ -158,6 +158,7 @@ class AsyncTcpConnection extends TcpConnection
             Worker::$globalEvent->del($socket, EventInterface::EV_WRITE);
             // Nonblocking.
             stream_set_blocking($socket, 0);
+            stream_set_read_buffer($socket, 0);
             // Try to open keepalive for tcp and disable Nagle algorithm.
             if (function_exists('socket_import_stream') && $this->transport === 'tcp') {
                 $raw_socket = socket_import_stream($socket);