php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67170 Disable Nagle's Algorithm with TCP_NODELAY, it delays sending small messages
Submitted: 2014-05-01 17:08 UTC Modified: 2014-12-07 17:51 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: yarekt at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: stomp (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-05-01 17:08 UTC] yarekt at gmail dot com
Description:
------------
When sending a message of length smaller than MSS the message is delayed by ~40ms.
This makes sending small messages synchronously very slow (~25 messages/sec)

The patch adds TCP_NODELAY to the socket on connect, and is based off the release_1_0_5 tag.

After applying this patch the speed went up to 500 messages/sec and the delay
from push to ack dropped to ~1ms.


Patches

set_socket_options (last revision 2014-05-01 17:12 UTC by yarekt at gmail dot com)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-07 17:51 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2014-12-07 17:51 UTC] pierrick@php.net
The patch was applied on the git repo. It will be part of the next release.

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC