Req #72066 [Opn->Csd]: Lack of TCP_NODELAY causes sockets to be horribly slow
| From: | krakjoe@php.net | Date: | Fri, 29 Apr 2016 12:43:00 +0000 |
| Subject: | Req #72066 [Opn->Csd]: Lack of TCP_NODELAY causes sockets to be horribly slow | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200828@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72066&edit=1
ID: 72066
Updated by: krakjoe@php.net
Reported by: slawek1211 at gmail dot com
Summary: Lack of TCP_NODELAY causes sockets to be horribly
slow
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Streams related
Operating System: Linux, all flavours
PHP Version: 7.0.5
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
socket_import_stream should do the trick :)
Previous Comments:
------------------------------------------------------------------------
[2016-04-20 20:24:44] slawek1211 at gmail dot com
Description:
------------
On loopback interfaces, where MTU is set to 65536 on modern linux flavours, lack of support to open
persistent, nodelay sockets makes fast, 2-way, local communication impossible for small packets
(15-30kb) due to very high latency.
While pfsockopen cannot be set to TCP_NODELAY mode, sockopen doesn't support persistency, so
it's like nothing supports all features needed for fast 2-way communication.
Expected result:
----------------
Ability to set TCP_NODELAY on pfsockopen, or some function to access underlying socket, so this
option could be set using socket_set_option
Actual result:
--------------
Lack of TCP_NODELAY support results in a situation that sending 20kb of data using loopback with
high MTU could take 30-40ms.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72066&edit=1