• 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: CFWriteStreamWrite Blocking if we give invalid Host.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFWriteStreamWrite Blocking if we give invalid Host.


  • Subject: Re: CFWriteStreamWrite Blocking if we give invalid Host.
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 19 Jun 2008 18:15:30 -0700

Looks like you're using the stream in synchronous mode, since you haven't added it to a runloop. In that case, I'm pretty sure that the DNS lookup and socket opening are done synchronously, too. That explains the delay you're seeing. The "-1" return value only indicates that the socket's write buffer can't accept any bytes; you haven't even gotten to that point yet because the socket isn't open.

—Jens

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >CFWriteStreamWrite Blocking if we give invalid Host. (From: "SridharRao M" <email@hidden>)

  • Prev by Date: Re: Add item to NSSavePanel sidebar
  • Next by Date: Re: Trying to get hang of PDO
  • Previous by thread: Re: CFWriteStreamWrite Blocking if we give invalid Host.
  • Next by thread: Tab-based ("document"-based?) application
  • Index(es):
    • Date
    • Thread