Remove INJECT_EVENTS permissions from test APKs.
[chromium-blink-merge.git] / third_party / tlslite / patches / ignore_write_failure.patch
blob0a5e960586ec58da1c6a9cb736bbef7754f36337
1 diff --git a/third_party/tlslite/tlslite/tlsrecordlayer.py b/third_party/tlslite/tlslite/tlsrecordlayer.py
2 index 6ef3895..3584726 100644
3 --- a/third_party/tlslite/tlslite/tlsrecordlayer.py
4 +++ b/third_party/tlslite/tlslite/tlsrecordlayer.py
5 @@ -288,7 +288,9 @@ class TLSRecordLayer(object):
6 except GeneratorExit:
7 raise
8 except Exception:
9 - self._shutdown(False)
10 + # Don't invalidate the session on write failure if abrupt closes are
11 + # okay.
12 + self._shutdown(self.ignoreAbruptClose)
13 raise
15 def close(self):