-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP CONNECT done non-blocking #1547
Conversation
@bagder, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jay, @yangtse and @dfandrich to be potential reviewers. |
Coverage decreased (-0.03%) to 73.182% when pulling 5fec25b179fc375889ae71aca827f3038e441c95 on bagder/HTTP-CONNECT-non-blocking into e100afb on master. |
lib/urldata.h
Outdated
TUNNEL_INIT, /* init/default/no tunnel state */ | ||
TUNNEL_CONNECT, /* CONNECT has been sent off */ | ||
TUNNEL_COMPLETE /* CONNECT response received completely */ | ||
} tunnel_state; /* two separate ones to allow FTP */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is now wrong, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed! Thanks. The updated logic allocates a fresh struct for each CONNECT...
Coverage increased (+0.05%) to 73.268% when pulling 5ba5ffadd1b4bcb7b08df8de75031172e2e454a8 on bagder/HTTP-CONNECT-non-blocking into e100afb on master. |
lib/http_proxy.c
Outdated
s->cl--; | ||
infof(data, | ||
"one byte down '%c', %" CURL_FORMAT_CURL_OFF_T " to go!\n", | ||
*s->ptr, s->cl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I'd lose this infof but at the very least wrap it in a DEBUGF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yes that's a leftover from my debugging. I'll remove that completely, thanks!
5ba5ffa
to
d0fdcbb
Compare
Mentioned as a problem since 2007 (8f87c15) and of course it existed even before that.
d0fdcbb
to
32eddae
Compare
Just because this is a slightly larger change, I'm playing it safe and will not merge it this close to the next release. Scheduled for next instead. |
This commit broke builds with --disable-proxy or --disable-http |
Thanks, fixed now! |
No description provided.