diff options
Diffstat (limited to 'chromium/third_party/tlslite/patches/ignore_write_failure.patch')
-rw-r--r-- | chromium/third_party/tlslite/patches/ignore_write_failure.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/third_party/tlslite/patches/ignore_write_failure.patch b/chromium/third_party/tlslite/patches/ignore_write_failure.patch new file mode 100644 index 00000000000..169e4d5871f --- /dev/null +++ b/chromium/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): |