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 wondering what are my other options? Is there a way to set > >>TCP_NODELAY system-wide? > > > >net.inet.tcp.delayed_ack > >net.inet.tcp.delacktime > > > >Depending on your application it may be sufficient to just reduce the > >time. > > Really? Doesn't TCP_NODELAY (Nagle's algorithm) work on buffers to be > sent rather than on ACKs on received data?
Good point. TCP_NODELAY disables both to my knowledge. And setting delacktime to 1 helped me in one buffer case. But I'm not sure anymore - a non delayed ack might piggypack payload much sooner of course. -- B.Walter <[email protected]> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

