Commit Graph

21 Commits

Author SHA1 Message Date
Augie Fackler
ea14145f1e httpclient: import 4bb625347d4a to provide SSL wrapper injection
This lets us inject our own ssl.wrap_socket equivalent into
httpclient, which means that any changes we make to our ssl handling
can be *entirely* on our side without having to muck with httpclient,
which sounds appealing. For example, an extension could wrap
sslutil.ssl_wrap_socket with an api-compatible wrapper and then tweak
SSL settings more precisely or use GnuTLS instead of OpenSSL.
2013-09-20 09:15:09 -04:00
Matt Mackall
4831f68cac merge with stable 2013-09-18 14:52:16 -05:00
Augie Fackler
401f0a3a21 httpclient: apply upstream revision da7579b034a4 to fix SSL problems (issue4038) 2013-09-18 14:45:28 -04:00
Augie Fackler
dfecda13f3 httpclient: update to revision 9517a2b56fe9 of httpplus (issue3905)
Includes upstream change "socketutil: force SSLv3 by default, as it is
safer" which should fix issue 3905.
2013-07-24 14:45:29 -04:00
Augie Fackler
16812584f2 httpclient: import 0d1b0a8bc549 to fix bug involving late-arriving RST after a response
After a day of hunting this defect, I'm now unable to reproduce the
bug without this patch applied. Regardless, this should fix the
problem I was observing with wireshark. Hopefully this fixes any
flakiness in the buildbot from http2.
2013-08-23 16:16:22 -04:00
Augie Fackler
2b894133a5 httpclient: upgrade to fe8c09e4db64 of httpplus 2013-05-11 20:25:15 -05:00
Brendan Cully
6d209b275f http2: sane readline
It turns out that it pays off to read more than a byte at a time with
a select in between :)
2013-02-01 15:00:23 -08:00
Brendan Cully
ce866bfa51 http2: make read use pushchunk/popchunk, eschew itertools
The itertools approach was showing up high in the profile output.
2013-02-01 14:41:35 -08:00
Brendan Cully
720c8502c6 http2: track available data as it changes instead of recomputing it
With a large amount of available data, this computation can become
costly.
2013-02-01 14:41:33 -08:00
Augie Fackler
a65f6b11d8 httpclient: apply change df9aea1def3e: remove use of two-argument raise 2013-01-01 13:25:07 -06:00
Mads Kiilerich
5e3dc3e383 avoid using abbreviations that look like spelling errors 2012-08-27 23:14:27 +02:00
Mads Kiilerich
2f4504e446 fix trivial spelling errors 2012-08-15 22:38:42 +02:00
Augie Fackler
c0cf243849 httpclient: omit tests for the client since we don't run them anyway 2012-05-19 09:34:25 -05:00
Augie Fackler
ad6bc369b7 httpclient: update to c5abd358e543 of httpplus 2012-05-18 17:05:17 -05:00
Augie Fackler
68b99d0585 httpclient: update to revision 892730fe7f46 of httpplus 2012-05-04 16:00:33 -05:00
Augie Fackler
3b65f30ba9 httpclient: update to 07d8c356f4d1 of py-nonblocking-http
This addresses a defect when the server closes the socket before
finishing a response (if it crashes, for example) first spotted in
Issue2951.
2011-10-10 17:57:40 -05:00
Augie Fackler
a8600f4669 httpclient: import ca33b88d143c from py-nonblocking-http (issue2932) 2011-07-29 12:46:45 -05:00
Augie Fackler
5086ed5b5d httpclient: import revision fc731618702a of py-nonblocking-http 2011-05-17 10:28:03 -05:00
Augie Fackler
5ace1beee1 httpclient: import revision b8c3511a8cae from py-nonblocking-http
Fixes issues with SSL_ERROR_WANT_READ incorrectly breaking the
response read.
2011-05-12 10:48:31 -05:00
Augie Fackler
21a2956afa httpclient: import f4c380237fd5 to fix keepalive not working 2011-05-11 08:00:48 -05:00
Augie Fackler
1753857f5b Import new http library as mercurial.httpclient.
This is revision a4229f13c374 of
http://py-nonblocking-http.googlecode.com/ with a no-check-code
comment added to the end of each file using `for fi in $(hg manifest |
grep mercurial/httpclient/) ; echo '# no-check-code' >> $fi`.
2011-05-06 09:57:55 -05:00