From: Willy Tarreau <w@1wt.eu>
To: Nicolas Cannasse <ncannasse@motion-twin.com>
Cc: davids@webmaster.com, swivel@shells.gnugeneration.com,
linux-kernel@vger.kernel.org
Subject: Re: poll() blocked / packets not received ?
Date: Tue, 21 Oct 2008 07:12:53 +0200 [thread overview]
Message-ID: <20081021051252.GS24654@1wt.eu> (raw)
In-Reply-To: <48FCBEBE.700@motion-twin.com>
On Mon, Oct 20, 2008 at 07:24:14PM +0200, Nicolas Cannasse wrote:
> For (1) I can't add the timeout since I have no way to differentiate
> between a lost connection and a request that takes time to execute.
Not only you can, but you *must*. Any service assuming infinite timeout
is deemed to fail. If you know that one request can take as long as one
minute for instance, then use a 2 minutes timeout. The day all requests
will be automatically cleaned up because of a failed firewall between
client and server, you'll be happy not to have to come there and restart
the service to flush them.
There's a huge difference between using a very large timeout and none at
all.
Willy
prev parent reply other threads:[~2008-10-21 5:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 8:25 poll() blocked / packets not received ? Nicolas Cannasse
2008-10-20 10:15 ` swivel
2008-10-20 10:46 ` Nicolas Cannasse
2008-10-20 11:39 ` swivel
2008-10-20 12:13 ` Nicolas Cannasse
2008-10-20 12:39 ` Nicolas Cannasse
2008-10-20 15:53 ` David Schwartz
2008-10-20 17:24 ` Nicolas Cannasse
2008-10-20 23:21 ` David Schwartz
2008-10-21 5:12 ` Willy Tarreau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081021051252.GS24654@1wt.eu \
--to=w@1wt.eu \
--cc=davids@webmaster.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ncannasse@motion-twin.com \
--cc=swivel@shells.gnugeneration.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.