Re: Help on socket lib and TCP/IP handshake
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Mon, 11 Aug 2008 18:01:04 +0200
David Schwartz <davids@xxxxxxxxxxxxx> writes:
On Aug 11, 4:42 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
The kernel is supposed to complete the initial three-way-handshake
autonomously and to then queue the connection 'somewhere', where a
later accept will be able to find it. It is not entirely inconceivable
that the real-world scenario corresponding to the description above
actually is 'suddenly, the server stops calling accept altogether,
so that no new connections are possible'. But it is really easy
to verify that accept is being called, and therefore, I consider this
to be somewhat far-fetched.
Do you have a scenario you consider more likely? IMO, the most likely
explanation is that the thread is not actually blocked in 'accept'.
The original description did not claim that the server permanently
ceased to accept connections, but that the server was still doing
accept processing and 'client connect calls' would result in
connection refused messages. According to the listen(2)-manpage, this
could happen when a new connection request arrives while the listen
backlog queue is full.
If the server really ceases to accept connections, it is (of course)
much more likely that it stopped calling accept than that the system
call 'broke mysteriously'. But that is unknown.
.
- Follow-Ups:
- Re: Help on socket lib and TCP/IP handshake
- From: David Schwartz
- Re: Help on socket lib and TCP/IP handshake
- References:
- Help on socket lib and TCP/IP handshake
- From: arnab
- Re: Help on socket lib and TCP/IP handshake
- From: David Schwartz
- Re: Help on socket lib and TCP/IP handshake
- From: Rainer Weikusat
- Re: Help on socket lib and TCP/IP handshake
- From: David Schwartz
- Help on socket lib and TCP/IP handshake
- Prev by Date: Re: Help on socket lib and TCP/IP handshake
- Next by Date: Re: Help on socket lib and TCP/IP handshake
- Previous by thread: Re: Help on socket lib and TCP/IP handshake
- Next by thread: Re: Help on socket lib and TCP/IP handshake
- Index(es):
Relevant Pages
|