• 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: socket shutdown leaking FCBs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: socket shutdown leaking FCBs


  • Subject: Re: socket shutdown leaking FCBs
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 27 Jan 2005 15:51:31 -0800

On 2005-01-27 15:46:13 -0800 Jeff Heyob <email@hidden> wrote:

The problem:
When I refuse a connection, 'net' is set to nil which then routes the nativeSocketH to the call shutdown().
I use sSocketRefusedCount to debug the number of refusals and sSocketShutdownErrorCount to track the number of errors from shutdown(). sSocketShutdownErrorCount remains at zero which tells me that shutdown() is working. However, over time the number of file control blocks for the app reaches 256 then the app dies.


What else needs to be done when refusing a socket connection so that the network resources are actually released?
Do I need to call release on nativeSocketH?

I believe you will need to call close() to actually release the file descriptor.


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


  • Follow-Ups:
    • Re: socket shutdown leaking FCBs
      • From: daniel <email@hidden>
References: 
 >socket shutdown leaking FCBs (From: Jeff Heyob <email@hidden>)

  • Prev by Date: socket shutdown leaking FCBs
  • Next by Date: Re: socket shutdown leaking FCBs
  • Previous by thread: socket shutdown leaking FCBs
  • Next by thread: Re: socket shutdown leaking FCBs
  • Index(es):
    • Date
    • Thread