> > I'm working on a TCP/IP Palm app that opens and closes *a lot*
> of sockets.

>the *one* thing that i've found that works is if I do this (and have
>something like a 10-15 second delay) and it's totally gross, but...:

>    //set the socket's SO_LINGER option to "0", so it'll close immediately
>    //when we call NetLibSocketClose()
>    ltype.onOff = true;
>    ltype.time = 0;
>    retVal = NetLibSocketOptionSet(AppNetRefnum, sock,
>              netSocketOptLevelSocket, netSocketOptSockLinger, &ltype,
sizeof(ltype), -1, &err);


I talked to a Palm engineer and he said that's what Palm's code does as a
workaround.


-Roger Flores


Reply via email to