diff options
author | wbond <will@wbond.net> | 2018-04-15 10:29:14 -0400 |
---|---|---|
committer | wbond <will@wbond.net> | 2018-04-15 10:29:14 -0400 |
commit | 28035fe8bb1117361edb056afa10d7f19eaf078e (patch) | |
tree | 6328b68d01c19e231ad6762969710dd70dc29655 | |
parent | b3fa55451b7071f64ef4777283c1432f12119f9f (diff) | |
download | urllib3-28035fe8bb1117361edb056afa10d7f19eaf078e.tar.gz |
Set the data written earlier, although this shouldn't matter
-rw-r--r-- | urllib3/contrib/securetransport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/urllib3/contrib/securetransport.py b/urllib3/contrib/securetransport.py index c062bc6f..e5c347c0 100644 --- a/urllib3/contrib/securetransport.py +++ b/urllib3/contrib/securetransport.py @@ -264,6 +264,8 @@ def _write_callback(connection_id, data_buffer, data_length_pointer): except (socket.error) as e: error = e.errno + data_length_pointer[0] = sent + if error is not None and error != errno.EAGAIN: if error == errno.ECONNRESET or error == errno.EPIPE: if sent != bytes_to_write: @@ -291,7 +293,6 @@ def _write_callback(connection_id, data_buffer, data_length_pointer): return SecurityConst.errSSLClosedAbort raise - data_length_pointer[0] = sent if sent != bytes_to_write: return SecurityConst.errSSLWouldBlock |