chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] TCP read/write timeout change


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] [PATCH] TCP read/write timeout change
Date: Thu, 01 Aug 2013 21:44:23 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Tue, 30 Jul 2013 20:23:01 +0200 Peter Bex <address@hidden> wrote:

> As has been pointed out by Mario (and before, Felix, in 
> http://lists.nongnu.org/archive/html/chicken-hackers/2013-05/msg00013.html),
> the change in the way the TCP read and/or write timeouts
> work now is slightly undesirable.
>
> When there's a slow connection, and the read or write actions
> get interrupted (EAGAIN/EINTR), the timeouts shouldn't get
> reset otherwise it might never timeout at all.  However, when
> a few bytes got read, there is some progress, and the timer
> should probably be reset.  The exact intended semantics remain
> unclear, but at least this seems most sane; it avoids getting
> stuck completely, but if some progress is made the system won't
> see it as "no response".
>
> There's also another problem in the timeouts: they get computed
> at socket creation time, which is completely bogus (I have no idea
> why this hasn't been found at all).
>
> Here's a patch that should make it work "correctly".

Thanks, Peter.  Your patch seems to improve things -- I could not
reproduce the issue I was facing (timeouts while downloading
sql-de-lite).  I pushed it.

Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]