diff --git a/third_party/tlslite/tlslite/tlsrecordlayer.py b/third_party/tlslite/tlslite/tlsrecordlayer.py index 6ef3895..3584726 100644 --- a/third_party/tlslite/tlslite/tlsrecordlayer.py +++ b/third_party/tlslite/tlslite/tlsrecordlayer.py @@ -288,7 +288,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):