summaryrefslogtreecommitdiffstats
path: root/third_party/tlslite/google.patch
blob: f5a7401dfbbb67963204543a31af6177b682c3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- tlslite/TLSRecordLayer.py	2008-02-27 15:45:16.159680300 -0800
+++ tlslite_google/TLSRecordLayer.py	2008-02-29 14:54:36.515625000 -0800
@@ -324,8 +324,10 @@
                 alert = None
                 # Forcing a shutdown as WinHTTP 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)):
@@ -1124,4 +1126,3 @@
                          imac_sha.digest()).digest()
 
         return stringToBytes(md5Str + shaStr)
-