Re: streams/sockets slow to close?
Re: streams/sockets slow to close?
- Subject: Re: streams/sockets slow to close?
- From: Jens Alfke <email@hidden>
- Date: Thu, 14 Nov 2013 12:50:29 -0800
On Nov 14, 2013, at 12:04 PM, Michael Brian Bentley <email@hidden> wrote:
> Now, I use the SetProperty calls to assert
> kCFStreamPropertyShouldCloseNativeSocket to kCFBooleanTrue.
This shouldn’t be necessary if you called CFStreamCreatePairWithSocketToHost. Since CFStream created the socket, it will close it by default.
It should be a harmless no-op, though. I don’t know why your socket isn’t getting closed on time. I use pretty much this exact recipe to do TCP networking in my app, but I confess I’ve just been assuming the socket got closed without using tcpdump to verify.
—Jens
_______________________________________________
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