Re: CFWriteStreamWrite Blocking if we give invalid Host.
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