bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] need some advice for 0 timeout code


From: Hrvoje Niksic
Subject: Re: [Bug-wget] need some advice for 0 timeout code
Date: Tue, 15 May 2012 13:16:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Tim Ruehsen <address@hidden> writes:

> Am Tuesday 15 May 2012 schrieb Hrvoje Niksic:
>> Tim Ruehsen <address@hidden> writes:
>> > There are three obvious ways to fix the issue once and for all:
>> > a)
>> > when given the timeout value 0, use INFINITY and special handle this
>> > value in select_fd() to call select with timeout NULL.
>> 
>> Why call select() or select_fd() at all when timeout is 0?
>
> Some parts in the source call select_fd() with timeout==0, supposed to return 
> immediately with -1, 0 or 1.

And that's fine.  What I meant is: there is no need to even bother to
call select_fd() in the case when the intended timeout is supposed to be
infinite.

> Changing select_fd() simply won't work.

Agreed - however, I'm not proposing to change select_fd(), but its
callers.  Wget code base has changed considerably since I last worked on
it, so I could easily be missing something.



reply via email to

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