Re: Disonnecting a TCP listening socket
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Fri, 19 Sep 2008 12:25:44 -0700 (PDT)
On Sep 19, 10:49 am, true...@xxxxxxxxx wrote:
Hi
If a server program wants to stop accepting client connections, it
just has to close() the listening socket. By doing this, it also
discards the connections that are established, but that accept()
hasn't returned yet.
My question therefore is : is it possible to tell the OS to stop
accepting incoming connection requests, and still getting the
connections that are already established and waiting in the queue ?
No. There's no easy way to do it. And it's very tricky to do it 100%
correctly in combination with things like syn cookies. It's tricky to
tell for sure whether an incoming SYN is for a new connection or one
that's already established (and your SYN/ACK dropped).
DS
.
- Follow-Ups:
- Re: Disonnecting a TCP listening socket
- From: true801
- Re: Disonnecting a TCP listening socket
- References:
- Disonnecting a TCP listening socket
- From: true801
- Disonnecting a TCP listening socket
- Prev by Date: Re: Possible attack?
- Next by Date: Re: Disonnecting a TCP listening socket
- Previous by thread: Re: Disonnecting a TCP listening socket
- Next by thread: Re: Disonnecting a TCP listening socket
- Index(es):
Relevant Pages
|