• 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
O_NONBLOCK & connect() not blocking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

O_NONBLOCK & connect() not blocking


  • Subject: O_NONBLOCK & connect() not blocking
  • From: Mark Thomas <email@hidden>
  • Date: Wed, 12 Jul 2006 11:35:44 +0100
  • Organization: Coderus Ltd

Hi,
  Is there any reason why connect() always seems to block for about 30-40
seconds regardless if you are setting the O_NONBLOCK flag via fcntl &
F_SETFL and using select() to detect the connection has happened. Most
documentation I have googled seems to imply this should work ?

  As I'm wanting to attach to server, but only to wait around 5 seconds for
it respond which I know it will respond in that time. The tool is only for
use within LAN so not WAN based.

Thanks
Mark.

 _______________________________________________
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

  • Follow-Ups:
    • Re: O_NONBLOCK & connect() not blocking
      • From: Quinn <email@hidden>
  • Prev by Date: Re: setting the DF bit on a UDP BSD socket in OS X
  • Next by Date: Re: O_NONBLOCK & connect() not blocking
  • Previous by thread: Re: setting the DF bit on a UDP BSD socket in OS X
  • Next by thread: Re: O_NONBLOCK & connect() not blocking
  • Index(es):
    • Date
    • Thread