Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreFoundation socket leak?



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.

References: 
 >CoreFoundation socket leak? (From: Mike Laster <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.