Re: how to handle socket timeout?



On Jan 16, 1:25 pm, Rick Jones <rick.jon...@xxxxxx> wrote:
David Schwartz <dav...@xxxxxxxxxxxxx> wrote:
You can also use connection establishment to verify that the server is
operational. If you can set up a new connection to it, it's not dead.

Since the connection will complete before the server application calls
accept(), simply establishing the connection (ie connect() completes)
does not mean the server application is in good health. Indeed it
isn't "dead" in so far as the listen endpoint is still there, but it
could be "undead" as it were and hung.

I think this just adds one more bit of information to help to decide
what to do next. If the request timed out, something is wrong. If
the request timed out and connect succeeded, it looks like the server
is congested or hanging. If the connect times out, it's either the
server is unreachable or the network is congested. If the connect
fails, we will know what the error is... Still not enough information
though...

Regards,
Arkadiy
.



Relevant Pages

  • RE: Problems with Permissions
    ... And SBS server is only take ... the role of an internal server. ... they are all configured to connected to internal network. ... g. Run the Configure Email and Internet Connection Wizard on SBS server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Connection from remote computer to network SQL Server
    ... There is no firewall on the W2K machine acting as the SQL server. ... I tried making the SQL machine a "trusted" on the router. ... connection works. ... To find the IP address of your computer inside the network, ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Networking Question - VLANs on SBS 2003 Premium SP1
    ... be sure you do not enable any DHCP server in internal network. ... You do not get any issue when you connect the SBS to the old router, ... On the Connection Type page, click Broadband, and then click Next. ...
    (microsoft.public.windows.server.sbs)
  • 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)