[issue29970] Severe open file leakage running asyncio SSL server

2017-12-12 Thread Neil Aspinall

Change by Neil Aspinall <m...@neilaspinall.co.uk>:


--
keywords: +patch
pull_requests: +4717
stage:  -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29970>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29970] Severe open file leakage running asyncio SSL server

2017-12-12 Thread Neil Aspinall

Neil Aspinall <m...@neilaspinall.co.uk> added the comment:

I think there's been some confusion about what PR 480 was meant to fix - it 
helps in cases where connections are closed during handshake, but if a server 
connection is waiting for a handshake but never receives any data at all then 
it stays in that state forever.

As for a fix, how about giving SSLProtocol a method like:

def checkHandshakeDone(self):
if self._in_handshake == True:
self._abort()

and then at the end of _start_handshake() adding:

self._loop.call_later(10, self.checkHandshakeDone)

Then if the handshake is not complete within ten seconds of starting, the 
connection will be aborted.

--
nosy: +mocmocamoc

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29970>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3605] Py_FatalError causes infinite loop

2011-07-28 Thread Neil Aspinall

Neil Aspinall m...@neilaspinall.co.uk added the comment:

Would it be possible for this issue's fix (PyErr_Occurred() returning null when 
the thread state is null) to be applied to the 2.7 branch?

--
nosy: +naspinal

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3605
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com