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

 

 [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)

Pull Requests

Pull requests:

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: Sun Nov 03 09:01:29 2024 UTC