# disable listen

**URL:** <https://forums.digi.com/t/disable-listen/5824>\
**Category:** NET+OS\
**Created:** [February 20, 2003, 10:50pm UTC](https://forums.digi.com/t/disable-listen/5824 "2003-02-20T22:50:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [February 20, 2003, 10:50pm UTC](https://forums.digi.com/t/disable-listen/5824/1 "2003-02-20T22:50:42Z")

</div>

I have a listen on a socket. I need to be able to cancel the listen when I “max out” my connections then restart the listen when my connections are no longer “maxed” I tried simply shutting down the socket then opening a new one with the same parameter. The socket(…) call works but I can not bind the new socket. I even tried turning on SO\_REUSEADDR via setsockopt. Is there any way to do this with the limited socket api?

---

<div class="post-metadata">

**Author:** ![muscleman](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@muscleman](https://forums.digi.com/u/muscleman)\
**Post date:** [April 7, 2003, 11:41am UTC](https://forums.digi.com/t/disable-listen/5824/2 "2003-04-07T11:41:16Z")

</div>

You also need reuseport feature as well which is not implemented in current Net+Os version.
