Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: third_party/tlslite/tlslite/sessioncache.py

Issue 211173006: Perform tlslite 0.3.8 -> 0.4.6 renames ahead of time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop the -B Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tlslite/tlslite/session.py ('k') | third_party/tlslite/tlslite/sharedkeydb.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Class for caching TLS sessions.""" 1 """Class for caching TLS sessions."""
2 2
3 import thread 3 import thread
4 import time 4 import time
5 5
6 class SessionCache: 6 class SessionCache:
7 """This class is used by the server to cache TLS sessions. 7 """This class is used by the server to cache TLS sessions.
8 8
9 Caching sessions allows the client to use TLS session resumption 9 Caching sessions allows the client to use TLS session resumption
10 and avoid the expense of a full handshake. To use this class, 10 and avoid the expense of a full handshake. To use this class,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 else: 94 else:
95 break 95 break
96 self.firstIndex = index 96 self.firstIndex = index
97 97
98 def _test(): 98 def _test():
99 import doctest, SessionCache 99 import doctest, SessionCache
100 return doctest.testmod(SessionCache) 100 return doctest.testmod(SessionCache)
101 101
102 if __name__ == "__main__": 102 if __name__ == "__main__":
103 _test() 103 _test()
OLDNEW
« no previous file with comments | « third_party/tlslite/tlslite/session.py ('k') | third_party/tlslite/tlslite/sharedkeydb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698