Re: [Bug-wget] 1.13.4 patched to support file size limitation

2012-03-28 Thread Giuseppe Scrivano
Hello, Dennis Yurichev dennis_mailing_li...@conus.info writes: diff -rupN wget-1.13.4.original/src/http.c wget-1.13.4-limitsize/src/http.c --- wget-1.13.4.original/src/http.c 2011-09-07 13:58:01.0 +0300 +++ wget-1.13.4-limitsize/src/http.c 2012-03-28 01:24:23.114389600 +0300 @@

Re: [Bug-wget] 1.13.4 patched to support file size limitation

2012-03-28 Thread Dennis Yurichev
On 28.03.2012 11:48, Giuseppe Scrivano wrote: how does it work when the server doesn't specify the Content-Length? In this case: contlen == 0. It would not work (file will be downloaded anyway, I think).

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

2012-03-28 Thread Tim Ruehsen
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

[Bug-wget] patch to activate itimer support

2012-03-28 Thread Tim Ruehsen
I realised that there is conditional itimer code in utils.c for alarm_set() and alarm_cancel(). It needs ITIMER_REAL to be defined, which is done in sys/time.h (Linux, BSD, maybe other OSes). Since the fallback code calls alarm(), no sub-second timeout is available. At least on a current Debian