# Wip\_cev\_peer\_close

**URL:** <https://forum.sierrawireless.com/t/wip-cev-peer-close/2359>\
**Category:** Open AT\
**Created:** [July 25, 2008, 7:43am UTC](https://forum.sierrawireless.com/t/wip-cev-peer-close/2359 "2008-07-25T07:43:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkat](https://avatars.discourse-cdn.com/v4/letter/v/4491bb/32.png) [@venkat](https://forum.sierrawireless.com/u/venkat)\
**Post date:** [July 25, 2008, 7:43am UTC](https://forum.sierrawireless.com/t/wip-cev-peer-close/2359/1 "2008-07-25T07:43:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![fft](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fft](https://forum.sierrawireless.com/u/fft)\
**Post date:** [July 25, 2008, 10:00am UTC](https://forum.sierrawireless.com/t/wip-cev-peer-close/2359/2 "2008-07-25T10:00:58Z")

</div>

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.
