• 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: connect() timeout after server restarts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connect() timeout after server restarts


  • Subject: Re: connect() timeout after server restarts
  • From: Josh Graessley <email@hidden>
  • Date: Mon, 17 Oct 2005 10:01:16 -0700


Use SO_REUSEADDR for TCP sockets when you're writing a process that is listening.


Use SO_REUSEPORT with UDP sockets. This is usually for multicast sockets where there may be more than one listener.

-josh

On Oct 17, 2005, at 4:18 AM, Peter Lovell wrote:

Nagle algorithm is disabled, NO_DELAY is enabled and SO_REUSEADDR is
enabled for the sockets.



I believe that you need SO_REUSEPORT as well as SO_REUSEADDR. Some
stacks use one flag to reuse both port and address but ...

Regards.....Peter

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >connect() timeout after server restarts (From: "Mu Lin" <email@hidden>)
 >Re: connect() timeout after server restarts (From: "Peter Lovell" <email@hidden>)

  • Prev by Date: Re: mount() from Cocoa App
  • Next by Date: Re: mount() from Cocoa App
  • Previous by thread: Re: connect() timeout after server restarts
  • Next by thread: mount() from Cocoa App
  • Index(es):
    • Date
    • Thread