[EMAIL PROTECTED] wrote:
>
> properly. The behavior is called "lingering". Palm's netlib allocates only
> 16 sockets for any kind of use. So if you are rapidly opening and closing
> sockets, the lingering sockets will soon use up all the available sockets
> and you will not be able to open any more until the linger time is used up.
I should have known that :-( Same logic applies when I use sockets in
Unix. And you are right - I was trying to connect 16 times one after
the other ( just one of those stress tests). But I tried to wait for a
little while and then try to connect again. I guess my wait wasn't long
enough!
> The way to deal with this situation is to call NetLibConnectionRefresh.
> This will bring up the physical connection if it has gone down without
> forcing you to shutdown and restart the whole stack.
I am doing the same. You can see the code I quoted in my earlier mail.
--
Ion