global TCP_NODELAY?

2009-10-12 Thread 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? ___

Re: global TCP_NODELAY?

2009-10-12 Thread Bernd Walter
On Mon, Oct 12, 2009 at 01:27:28PM +0200, Ivan Voras wrote: 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?

Re: global TCP_NODELAY?

2009-10-12 Thread Ivan Voras
Bernd Walter wrote: On Mon, Oct 12, 2009 at 01:27:28PM +0200, Ivan Voras wrote: 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

Re: global TCP_NODELAY?

2009-10-12 Thread Sergey Smitienko
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 =

Re: global TCP_NODELAY?

2009-10-12 Thread Ivan Voras
Sergey Smitienko wrote: 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:

Re: global TCP_NODELAY?

2009-10-12 Thread Bernd Walter
On Mon, Oct 12, 2009 at 01:42:08PM +0200, Ivan Voras wrote: Bernd Walter wrote: On Mon, Oct 12, 2009 at 01:27:28PM +0200, Ivan Voras wrote: 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

Re: global TCP_NODELAY?

2009-10-12 Thread Tom Judge
Ivan Voras wrote: Sergey Smitienko wrote: 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?

Re: global TCP_NODELAY?

2009-10-12 Thread Ivan Voras
Tom Judge wrote: Ivan Voras wrote: Sergey Smitienko wrote: 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

Re: global TCP_NODELAY?

2009-10-12 Thread Alfred Perlstein
* Ivan Voras ivo...@freebsd.org [091012 04:29] wrote: 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?

Re: global TCP_NODELAY?

2009-10-12 Thread Ivan Voras
2009/10/12 Alfred Perlstein alf...@freebsd.org: * Ivan Voras ivo...@freebsd.org [091012 04:29] wrote: 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

Re: global TCP_NODELAY?

2009-10-12 Thread Robert Watson
On Mon, 12 Oct 2009, Ivan Voras wrote: 2009/10/12 Alfred Perlstein alf...@freebsd.org: * Ivan Voras ivo...@freebsd.org [091012 04:29] wrote: 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

Re: global TCP_NODELAY?

2009-10-12 Thread Ivan Voras
2009/10/12 Robert Watson rwat...@freebsd.org: Create a libc wrapper that calls setsockopt(2) whenever socket(2) is called to create a TCP socket in php, and inject it using LD_PRELOAD.  This is a similar trick to what things like socks proxy library wrappers use, is easy to hack together, and