summaryrefslogtreecommitdiffstats
path: root/third_party/tlslite/chromium.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tlslite/chromium.patch')
-rw-r--r--third_party/tlslite/chromium.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/tlslite/chromium.patch b/third_party/tlslite/chromium.patch
new file mode 100644
index 0000000..94afa20
--- /dev/null
+++ b/third_party/tlslite/chromium.patch
@@ -0,0 +1,16 @@
+diff -u tlslite-0.3.8/tlslite/TLSRecordLayer.py chromium//tlslite/TLSRecordLayer.py
+--- tlslite-0.3.8/tlslite/TLSRecordLayer.py 2005-02-21 21:31:41.000000000 -0800
++++ chromium/tlslite/TLSRecordLayer.py 2008-11-25 21:58:04.000000000 -0800
+@@ -322,6 +322,12 @@
+ AlertDescription.close_notify, AlertLevel.warning)):
+ yield result
+ alert = None
++ # Forcing a shutdown as the OS does not seem to be
++ # responsive to the close notify.
++ prevCloseSocket = self.closeSocket
++ self.closeSocket = True
++ self._shutdown(True)
++ self.closeSocket = prevCloseSocket
+ while not alert:
+ for result in self._getMsg((ContentType.alert, \
+ ContentType.application_data)):