Index: third_party/tlslite/patches/ignore_write_failure.patch |
diff --git a/third_party/tlslite/patches/ignore_write_failure.patch b/third_party/tlslite/patches/ignore_write_failure.patch |
new file mode 100644 |
index 0000000000000000000000000000000000000000..169e4d5871f9c17edd60f2357d5ff3786491eb30 |
--- /dev/null |
+++ b/third_party/tlslite/patches/ignore_write_failure.patch |
@@ -0,0 +1,15 @@ |
+diff --git a/third_party/tlslite/tlslite/tlsrecordlayer.py b/third_party/tlslite/tlslite/tlsrecordlayer.py |
+index 8b92221..370dc9a 100644 |
+--- a/third_party/tlslite/tlslite/tlsrecordlayer.py |
++++ b/third_party/tlslite/tlslite/tlsrecordlayer.py |
+@@ -286,7 +286,9 @@ class TLSRecordLayer(object): |
+ except GeneratorExit: |
+ raise |
+ except Exception: |
+- self._shutdown(False) |
++ # Don't invalidate the session on write failure if abrupt closes are |
++ # okay. |
++ self._shutdown(self.ignoreAbruptClose) |
+ raise |
+ |
+ def close(self): |