Message254210
| Author |
alex |
| Recipients |
alex |
| Date |
2015年11月06日.20:08:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1446840481.06.0.811345685129.issue25569@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Run the following code:
import socket
import ssl
import sys
def main():
ctx = ssl.create_default_context()
s = socket.create_connection(('www.bing.com', 443))
s = ctx.wrap_socket(s, server_hostname='www.bing.com')
while True:
s.getpeercert()
sys.stderr.write('.')
sys.stderr.flush()
if __name__ == '__main__':
main()
and observe memory usage, you'll see it increases by a MB/s or so. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年11月06日 20:08:01 | alex | set | recipients:
+ alex |
| 2015年11月06日 20:08:01 | alex | set | messageid: <1446840481.06.0.811345685129.issue25569@psf.upfronthosting.co.za> |
| 2015年11月06日 20:08:01 | alex | link | issue25569 messages |
| 2015年11月06日 20:08:00 | alex | create |
|