"global" TCP_NODELAY?

Sergey Smitienko hunter at comsys.com.ua
Mon Oct 12 11:56:03 UTC 2009


Ivan Voras пишет:
> I'm trying to work around some extreme brain damageness in PHP (yes, 
> it sucks) which doesn't have a way to set TCP_NODELAY on stream 
> sockets so I'm wondering what are my other options? Is there a way to 
> set TCP_NODELAY system-wide?
What's wrong with:

<?php
$socket = socket_create_listen(1223);
socket_set_option($socket, SOL_SOCKET, TCP_NODELAY, 1);
var_dump(socket_get_option($socket, SOL_SOCKET, TCP_NODELAY));
?>



More information about the freebsd-hackers mailing list