|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: yarekt at gmail dot com
New email:
PHP Version: OS:


 [2014-05-01 17:08 UTC] yarekt at gmail dot com
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.


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


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

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 01:01:27 2024 UTC