Req #51879 [PATCH]: Add the ability to set the TCP_NODELAY flag for socket streams

From: Date: Thu, 17 Feb 2011 18:44:17 +0000
Subject: Req #51879 [PATCH]: Add the ability to set the TCP_NODELAY flag for socket streams
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158831@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51879&edit=1

 ID:                 51879
 Patch added by:     seld@php.net
 Reported by:        suppakilla at gmail dot com
 Summary:            Add the ability to set the TCP_NODELAY flag for
                     socket streams
 Status:             Open
 Type:               Feature/Change Request
 Package:            Streams related
 Operating System:   *
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: add-tcp-nodelay
Revision:   1297968256
URL:       
http://bugs.php.net/patch-display.php?bug=51879&patch=add-tcp-nodelay&revision=1297968256


Previous Comments:
------------------------------------------------------------------------
[2010-05-24 11:57:52] suppakilla at gmail dot com

In relation to http://bugs.php.net/bug.php?id=46360 I think it
would be
useful 
to have the ability to set the TCP_NODELAY flag on socket streams. The
arguments 
for this feature request are basically the same as of #6360, and it
would 
greatly help with performances under certain circumstances when dealing
with 
chatty network protocols.

The following snippet is an example of how the resulting code might look
like in 
a PHP script:

$opts = array(
    'socket' => array(
        'tcp_nodelay' => false,
    ),
);
$ctx = stream_context_create($opts);
$stream = stream_socket_client($uri, $errno, $errstr, $timeout, $flags,
$ctx);


Cheers,
Daniele Alessandri

------------------------------------------------------------------------
[2010-05-21 15:56:33] suppakilla at gmail dot com

Description:
------------
In relation to http://bugs.php.net/bug.php?id=46360 I think it
would be
useful 
to have the ability to set the TCP_NODELAY flag on socket streams. The
arguments 
for this feature request are basically the same as of #6360, and it
would 
greatly help with performances under certain circumstances when dealing
with 
chatty network protocols.

The following snippet is an example of how the resulting code might look
like in 
a PHP script:

$opts = array(
    'socket' => array(
        'tcp_nodelay' => false,
    ),
);
$stream = stream_socket_client($uri, $errno, $errstr, $timeout, $flags,
$opts);


Cheers,
Daniele Alessandri



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51879&edit=1


Thread (10 messages)

« previous php.bugs (#158831) next »