Req #72066 [NEW]: Lack of TCP_NODELAY causes sockets to be horribly slow

From: Date: Wed, 20 Apr 2016 20:24:48 +0000
Subject: Req #72066 [NEW]: Lack of TCP_NODELAY causes sockets to be horribly slow
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200668@lists.php.net to get a copy of this message
From: slawek1211 at gmail dot com Operating system: Linux, all flavours PHP version: 7.0.5 Package: Streams related Bug Type: Feature/Change Request Bug description:Lack of TCP_NODELAY causes sockets to be horribly slow 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 bug report at https://bugs.php.net/bug.php?id=72066&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72066&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72066&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72066&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72066&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72066&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72066&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72066&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72066&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72066&r=support Expected behavior: https://bugs.php.net/fix.php?id=72066&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72066&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72066&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72066&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72066&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72066&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72066&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72066&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72066&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72066&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72066&r=mysqlcfg

« previous php.bugs (#200668) next »