netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Beschorner Daniel <Daniel.Beschorner@facton.com>
Cc: netdev@vger.kernel.org
Subject: Re: Telnet closing delay
Date: Thu, 3 Apr 2008 14:42:07 +0400	[thread overview]
Message-ID: <20080403104207.GA21848@2ka.mipt.ru> (raw)
In-Reply-To: <3C59DB883F7B0B4D8096010D45ACCD134F21C0@exch.facton.local>

Hi.

On Thu, Apr 03, 2008 at 11:32:14AM +0200, Beschorner Daniel (Daniel.Beschorner@facton.com) wrote:
> >> 0.000095 select(4, [0 3], [], [0], NULL) = 1 (in [3])
> >> 0.001779 read(3, 0x8059de0, 8192)  = -1 EIO (Input/output error)
> 
> > Hmm, does not it supposed to stop doing such things on the closed
> > socket and not enter 10000 select/read loop?
> > Server behaves incorrectly in this scenario, why and how it can be
> fixed
> > is another questions better asked the author.
> 
> It must have been indeed triggered by a kernel change or bug, with
> current 2.6.24.4 all works fine again.

I really do not remember what was one year ago, but having a long loop
checking closed socket status is wrong. In recent kernels returned error
could be changed to something like -EINVAL, which is correctly handled
by application, it is impossible to say without caling mind readers, but
they are on vacations right now...

It can be some obscure kernel bug which was fixed or hidden, but with
above description it is hardly possible to tell what is going on.

-- 
	Evgeniy Polyakov

  reply	other threads:[~2008-04-03 10:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01 20:48 Telnet closing delay Beschorner Daniel
2007-05-02  9:19 ` Evgeniy Polyakov
2008-04-03  9:32   ` Beschorner Daniel
2008-04-03 10:42     ` Evgeniy Polyakov [this message]
2008-04-03 12:04       ` Beschorner Daniel

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=20080403104207.GA21848@2ka.mipt.ru \
    --to=johnpol@2ka.mipt.ru \
    --cc=Daniel.Beschorner@facton.com \
    --cc=netdev@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).