• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When to turn on TCP_NODELAY?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: data not arriving at client (bsd-sockets)
  • Next by Date: Re: Question on getting SSL streams using 10.1.5 and 10.2
  • Previous by thread: When to turn on TCP_NODELAY?
  • Next by thread: Re: When to turn on TCP_NODELAY?
  • Index(es):
    • Date
    • Thread