I am working on a console server app that listens on a port for a incoming connections. Every time I restart the console app, it has a pending connection queue which is causing the console server app to crash.
Is there a way to remove all pending connections in the queue before accepting new connections ?