Wip_cev_peer_close


#1

Hi ,

My observation is that when server is just closing the connection ,not the socket then Iam receiving the following event "WIP_CEV_PEER_CLOSE " .

Is it necessary to close the socket after this event ,if we don’t close what will happen?
Pls help me…

Venkat.


#2

If you don’t call wip_close() on the socket, its resources won’t be freed: you’ll lose some user RAM and some TCP buffer space.

I’d suggest you to call wip_abort() before wip_close(): if you don’t, WIP will first try to send a “gentle” closing notification to the peer, and fail to do so since IP is down. wip_close() would therefore take longer.