##// END OF EJS Templates
httpclient: update to revision 9517a2b56fe9 of httpplus (issue3905)...
Augie Fackler -
r19489:42fcb2f7 stable
parent child Browse files
Show More
@@ -622,6 +622,8 class HTTPConnection(object):
622 622 # TODO: find a way to block on ssl flushing its buffer
623 623 # similar to selecting on a raw socket.
624 624 continue
625 if e[0] == errno.EWOULDBLOCK or e[0] == errno.EAGAIN:
626 continue
625 627 elif (e[0] not in (errno.ECONNRESET, errno.EPIPE)
626 628 and not first):
627 629 raise
@@ -106,7 +106,7 else:
106 106 else:
107 107 raise x
108 108
109 _PROTOCOL_SSLv23 = 2
109 _PROTOCOL_SSLv3 = 1
110 110
111 111 CERT_NONE = 0
112 112 CERT_OPTIONAL = 1
@@ -118,7 +118,7 else:
118 118 # pylint: disable=W0613,R0913
119 119 def wrap_socket(sock, keyfile=None, certfile=None,
120 120 server_side=False, cert_reqs=CERT_NONE,
121 ssl_version=_PROTOCOL_SSLv23, ca_certs=None,
121 ssl_version=_PROTOCOL_SSLv3, ca_certs=None,
122 122 do_handshake_on_connect=True,
123 123 suppress_ragged_eofs=True):
124 124 """Backport of ssl.wrap_socket from Python 2.6."""
General Comments 0
You need to be logged in to leave comments. Login now