> From: Brady Hurst
>
> Is there a known issue with having a maximum number of
> 16 opened and closed sockets with the NetLib API?
> ...
> After I open and close 16 sockets, the creation of
> the 17th always returns a "no more sockets" error.
> If I close and reopen NetLib, it seems to reset
> and things work fine.
>
By default, a socket is kept in a semi-open state for a short period of time
after you close it. This is called "lingering." 16 is the maximum number
of sockets you can have open at one time. You need to set the SockLinger
option on the sockets you open to false, so they actually close when you
tell them to. See the docs for NetLibSocketOptionSet.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/