Re: how to handle socket timeout?
- From: Arkadiy <vertleyb@xxxxxxxxx>
- Date: Wed, 16 Jan 2008 11:11:33 -0800 (PST)
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
.
- References:
- how to handle socket timeout?
- From: Arkadiy
- Re: how to handle socket timeout?
- From: Rainer Weikusat
- Re: how to handle socket timeout?
- From: Arkadiy
- Re: how to handle socket timeout?
- From: Rick Jones
- Re: how to handle socket timeout?
- From: Rick Jones
- Re: how to handle socket timeout?
- From: Arkadiy
- Re: how to handle socket timeout?
- From: David Schwartz
- Re: how to handle socket timeout?
- From: Arkadiy
- Re: how to handle socket timeout?
- From: David Schwartz
- Re: how to handle socket timeout?
- From: Arkadiy
- Re: how to handle socket timeout?
- From: David Schwartz
- Re: how to handle socket timeout?
- From: Arkadiy
- Re: how to handle socket timeout?
- From: David Schwartz
- Re: how to handle socket timeout?
- From: Rick Jones
- how to handle socket timeout?
- Prev by Date: Re: how to handle socket timeout?
- Next by Date: Re: Socket Programming: How to terminate a thread "listening" for UDP packets?
- Previous by thread: Re: how to handle socket timeout?
- Next by thread: Re: how to handle socket timeout?
- Index(es):
Relevant Pages
|