logo       
Bookmark and Share

Re: wget hang with 204 response. Related to: awaiting response... No data r: msg#00000

web.wget.patches

Subject: Re: wget hang with 204 response. Related to: awaiting response... No data received.

I suspect having this problem (I send you the original bug-report). I
applied the patch, unfortunately without succes. Mail me for further info,
questions and testing.

Here is the output I got:

twins:$ /usr/local/bin/wget --verbose --debug --user=08466
--password=******
https://www.flightweb.org/members/spl-ny/assignments/bin/roster.cmd
Setting --user (user) to 08466
Setting --password (password) to ******
DEBUG output created by Wget 1.10.2 on linux-gnu.

--09:50:39--
https://www.flightweb.org/members/spl-ny/assignments/bin/roster.cmd
=> `roster.cmd'
Resolving www.flightweb.org... 171.21.250.42
Caching www.flightweb.org => 171.21.250.42
Connecting to www.flightweb.org|171.21.250.42|:443... connected.
Created socket 3.
Releasing 0x080a04d0 (new refcount 1).
Initiating SSL handshake.
Handshake successful; connected socket 3 to SSL handle 0x080a0698
certificate:
subject: /C=NL/ST=Noord-Holland/L=Schiphol/O=KLM Royal Dutch
Airlines/OU=IS/OU=Terms of use at www.verisign.com/rpa
(c)00/CN=www.flightweb.org
issuer: /O=VeriSign Trust Network/OU=VeriSign, Inc./OU=VeriSign
International Server CA - Class 3/OU=www.verisign.com/CPS Incorp.by Ref.
LIABILITY LTD.(c)97 VeriSign
X509 certificate successfully verified and matches host www.flightweb.org

---request begin---
GET /members/spl-ny/assignments/bin/roster.cmd HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Authorization: Basic ****************
Host: www.flightweb.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... No data received.
Closed 3/SSL 0x80a0698
Retrying.


On Mon, November 20, 2006 10:53, Deepak Nagaraj wrote:
> Hi,
>
> GNU wget hangs when server sends 204 ("No content") response, waiting
> for content that will never arrive.
>
> Please review this patch (I have tested it) and apply it if OK:
>
> $ diff -u http.c http-204fixed.c
> --- http.c 2006-11-20 01:45:25.733227896 -0800
> +++ http-204fixed.c 2006-11-20 01:45:33.976974656 -0800
> @@ -1743,8 +1743,10 @@
> }
> resp_free (resp);
>
> - /* 20x responses are counted among successful by default. */
> - if (H_20X (statcode))
> + /* 20x responses are counted among successful by default.
> + * 204 means no content, so ignore. -Deepak <n.deepak@xxxxxxxxx>
> + */
> + if (H_20X (statcode) && statcode != HTTP_STATUS_NO_CONTENT)
> *dt |= RETROKF;
>
> /* Return if redirected. */
> $
>
> I'm not a member of this list, so please copy me any responses.
>
> Thanks,
> Deepak
>
> --
> question = ( to ) ? be : ! be;
> --Wm. Shakespeare
>
>





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise