Re: CoreFoundation socket leak?
Re: CoreFoundation socket leak?
- Subject: Re: CoreFoundation socket leak?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 28 Oct 2002 10:49:53 -0800
On Friday, October 25, 2002, at 03:48 PM, Mike Laster wrote:
When creating a listening socket using the following call:
socketRef = CFSocketCreateWithSocketSignature(NULL,
&signature, kCFSocketAcceptCallBack, MCFSocketCallback,
&socketContext);
if (socketRef != NULL)
{
}
But the bind fails because another process is currently using the
port, the file handle seems to be leaked.
Mea culpa. This is a bug in CoreFoundation--which I have now fixed
internally. You can work around it as some have suggested, by using
several more basic calls rather than the convenience function
CFSocketCreateWithSocketSignature().
Douglas Davidson
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.