Re: socket shutdown leaking FCBs
Re: socket shutdown leaking FCBs
- Subject: Re: socket shutdown leaking FCBs
- From: Douglas Davidson <email@hidden>
- Date: Fri, 28 Jan 2005 13:46:15 -0800
On 2005-01-28 13:31:58 -0800 daniel <email@hidden> wrote:
Would it be better to call CFSocketInvalidate on the CFSocket?
Unless
configured otherwise, this will automatically close the underlying
socket.
From CFSocket.h:
"Do not in either case close the underlying native socket without
invalidating the CFSocket."
I believe that in this particular case the CFSocket wrapped the
accepting socket, while the socket being closed was the accepted
socket, not yet wrapped in its own CFSocket. However, it was a bit
difficult to make out from the code. If a socket is wrapped in a
CFSocket, then you are right, the CFSocket should be invalidated.
Douglas Davidson
_______________________________________________
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