• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreFoundation socket leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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

  • Prev by Date: Re: Questions about Network Interface and OS X
  • Next by Date: Jaguar and PPPLIB
  • Previous by thread: Re: CoreFoundation socket leak?
  • Next by thread: USB ADSL Modem name visible in Network preferences,
  • Index(es):
    • Date
    • Thread