Re: When to turn on TCP_NODELAY?
Re: When to turn on TCP_NODELAY?
- Subject: Re: When to turn on TCP_NODELAY?
- From: Quinn <email@hidden>
- Date: Mon, 19 May 2003 21:23:02 +0100
At 16:13 -0600 18/5/03, Scott Ribe wrote:
Assuming that I need to use TCP_NODELAY, at what point in the sequence of
operations do I call it. I don't see that addressed in the docs...
On the client side, after OTBind and before OTConnect? Or before OTBind? Or
does it matter?
On the server side, on my listening endpoint before OTListen? Before
OTAccept? Or on the worker endpoint after OTAccept?
I believe that TCP_NODELAY [1] takes effect as soon as you set it.
Thus, you can set it any time before you start transmitting lots of
little packets.
What I'd do is as follows.
1. On the server side, set it on the worker endpoint after the accept.
2. On the client side, set it after the connect.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
[1] I wish it'd be called "TCP_NONAGLE", 'cause "no delay" makes it
sound like you *always* want it on.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.