curl-library
RE: testsuite failure -- test 91
Date: Wed, 17 Dec 2003 14:49:32 -0800
On Mon, 8 Dec 2003, Daniel Stenberg wrote:
> I have an idea on how to proceed:
>
> Add debug code that outputs conn->headerbytecount when it is
> increased. It should be upped each time headers are read.
> This counter is what wrongly still is 0 when the bug occurs.
> It is done on two places in lib/transfer.c:Curl_readwrite().
I did this, like this:
--- transfer.c 3 Dec 2003 07:52:01 -0000 1.188
+++ transfer.c 17 Dec 2003 22:45:29 -0000
@@ -450,6 +450,7 @@
data->info.header_size += headerlen;
conn->headerbytecount += headerlen;
+ printf("conn->headerbytecount (headerlen) is
%ld\n",conn->headerbytecount);
/* *auth_act() checks what authentication methods that are
available and decides which one (if any) to use. It will
@@ -818,6 +819,7 @@
data->info.header_size += k->hbuflen;
conn->headerbytecount += k->hbuflen;
+ printf("conn->headerbytecount (k->hbuflen) is
%ld\n",conn->headerbytecount);
/* reset hbufp pointer && hbuflen */
k->hbufp = data->state.headerbuff;
To refresh people's memory, here's the command that fails:
$ ../src/curl http://127.0.0.1:8999/91 --anyauth -u mydomain\\myself:secret
When I add -v, it works.
The debug output looks like this:
conn->headerbytecount (k->hbuflen) is 46
conn->headerbytecount (k->hbuflen) is 88
conn->headerbytecount (k->hbuflen) is 123
conn->headerbytecount (k->hbuflen) is 147
conn->headerbytecount (k->hbuflen) is 187
conn->headerbytecount (k->hbuflen) is 232
conn->headerbytecount (k->hbuflen) is 251
conn->headerbytecount (headerlen) is 253
(Without -v, when it fails, the debugging stops here)
conn->headerbytecount (k->hbuflen) is 52
conn->headerbytecount (k->hbuflen) is 79
conn->headerbytecount (k->hbuflen) is 99
conn->headerbytecount (k->hbuflen) is 144
conn->headerbytecount (k->hbuflen) is 385
conn->headerbytecount (headerlen) is 387
conn->headerbytecount (k->hbuflen) is 54
conn->headerbytecount (k->hbuflen) is 81
conn->headerbytecount (k->hbuflen) is 126
conn->headerbytecount (headerlen) is 128
I'll see if I can figure out why...but in case someone gets there first...
-DB
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-17