• 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: More on detecting dropped connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on detecting dropped connections


  • Subject: Re: More on detecting dropped connections
  • From: Vincent Lubet <email@hidden>
  • Date: Mon, 15 Apr 2002 09:18:21 -0700

On Monday, April 15, 2002, at 08:56 AM, Tom Bayley wrote:

Thanks for that Vincent. One comment I have though on the following:

On Monday, April 15, 2002, at 04:41 PM, Vincent Lubet wrote:

You can fetch and clear the error by calling getsockopt() for the
option SO_ERROR, or alternatively, a read() or a write() will fail and
set errno to the error code.

I don't know about read(), but I have found that recv() does not return
an error in this case under OS X. That was the source of our problem.

This is very weird because both system calls read() and recv() end up calling the same socket receive routine that checks the socket error condition.

Could you please file a problem report with detailed steps on how to reproduce the problem (source code would be ideal).

Thanks,

Vincent
_______________________________________________
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.

References: 
 >Re: More on detecting dropped connections (From: Tom Bayley <email@hidden>)

  • Prev by Date: Re: PPP Control Stream
  • Next by Date: Re: FIFOs in Carbon?
  • Previous by thread: Re: More on detecting dropped connections
  • Next by thread: FIFOs in Carbon?
  • Index(es):
    • Date
    • Thread