Hey guys,
Here's a thing: I'm communicating with a site and the process is connect, send, receive, disconnect. Wait 10 minutes, repeat. To do this, I do all the socket allocation stuff, set up a receive notify, open the socket, send the data, wait for a reasonable amount of time for the reply, if there is a reply, I process it. Either way, I then disconnect, close socket, release socket.
So, what happens if I wait for the receive notify, don't get it within the timeout, and while I'm in the process of closing everything, it comes in? In theory, the system allocates a packet from the pool and tries to hand it to me, but I'm not waiting for it anymore, so I don't get it and I don't release it. I then close everything down and the received packet goes....where? Does closing the socket release any packets that were allocated in my name?
I'ma thinking the answer is no...
What is the prescribed method to handle this type of situation?
Bill