bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] timeout question (regarding the code)


From: Tim Ruehsen
Subject: [Bug-wget] timeout question (regarding the code)
Date: Wed, 28 Mar 2012 10:53:37 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

Hi,

the wget man page says a timeout value of 0 means 'forever'.
Even if seldom used, 0 seems to be a legal value.

There is a warning in gnutls.c about a not initialised value:
gnutls.c: In function 'wgnutls_read_timeout':
gnutls.c:163:54: warning: 'timer' may be used uninitialized in this function 
[-Wuninitialized]

Having a value of zero in opt.read_timeout would likely crash wget.

But to fix this I need clarification.
What should the code do in case of opt.read_timeout == 0 ?
At the moment it looks like zero means 'immediate'. But than, is the man page 
wrong ?

Tim



reply via email to

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