• 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
Spurious EBADF?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spurious EBADF?


  • Subject: Spurious EBADF?
  • From: Avi Drissman <email@hidden>
  • Date: Wed, 13 Nov 2002 17:47:57 -0500

I'm trying raw sockets with my server. Every so often (hours or so) I try to read() and I get -1 back, and errno is EBADF. How that could be so is beyond me, since I'm very carefully tracking my sockets.

The code then reasons that since an error occurred on read, it should close the connection. So it calls close() on the socket, which returns no error. Not even EBADF. So the socket became good again.

Has anyone heard of such problems?

Avi
--
Avi 'rlwimi' Drissman
email@hidden
Argh! This darn mail server is trunca
_______________________________________________
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.

  • Follow-Ups:
    • Re: Spurious EBADF?
      • From: Quinn <email@hidden>
  • Prev by Date: URLAccessManager on Mac Os X, through an authenficated proxy?
  • Next by Date: Re: Spurious EBADF?
  • Previous by thread: URLAccessManager on Mac Os X, through an authenficated proxy?
  • Next by thread: Re: Spurious EBADF?
  • Index(es):
    • Date
    • Thread