curl-library
Re: re-using connection with authentication
Date: Tue, 13 Mar 2007 13:49:11 +0100
Daniel Stenberg wrote:
>
>> Is it a bug in libcurl?
>
> It certainly looks like a libcurl bug. Does removing that assignment fix
> your problem?
>
Unfortunately this does not solve the problem :-(
I've been stepping through CreateConnection in url.c and here's what
happens:
...
conn->data = data; /* Setup the association between this connection
and the SessionHandle */
...
if(reuse) {
struct connectdata *old_conn = conn;
...
conn = conn_temp; /* use this connection from now on */
// conn->data = old_conn->data;
...
If this last assignment is removed, the conn->data does not point
anymore to the sessionHandle passed as a parameter to the function. As a
result, conn->data will contain the right digest, but the
(SessionHandle*)data isn't updated.
kind regards,
Sigrid Thijs
Received on 2007-03-13