Re: Help on socket lib and TCP/IP handshake



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.
.



Relevant Pages

  • Re: THREADS - SOCKETS
    ... A quick glance shows that you start a processing thread for each incoming ... connection and don't kill the thread/close the socket until the result has ... A small pool of threads are created at server startup. ... While there's a file in the queue one of the threads processes ...
    (comp.lang.java.programmer)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)
  • Re: Outgoing POP3 email missing/lost/not received
    ... ISP's mail server instead of the domain name on the ... SUMMARY OF SETTINGS FOR CONFIGURE E-MAIL AND INTERNET ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Networking Question - VLANs on SBS 2003 Premium SP1
    ... port on the old router so I now have a segregated WLAN. ... be sure you do not enable any DHCP server in internal network. ... On the Connection Type page, click Broadband, and then click Next. ... On the Network Connection, You must enable and configure the network ...
    (microsoft.public.windows.server.sbs)