Date: Mon, 12 Oct 2009 14:34:09 +0300 From: Sergey Smitienko <hunter@comsys.com.ua> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: "global" TCP_NODELAY? Message-ID: <4AD31431.4060503@comsys.com.ua> In-Reply-To: <hav3qp$n7n$1@ger.gmane.org> References: <hav3qp$n7n$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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)); ?>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AD31431.4060503>