asyncio icon indicating copy to clipboard operation
asyncio copied to clipboard

Fix for #404

Open asvetlov opened this issue 8 years ago • 9 comments

Don't pass ssl certivicate error to loop.call_exception_handler() Handle ssl.CertificateError only because ssl.SSLError may be raised not only on connection establishment.

@1st1 please take a look

asvetlov avatar Nov 11 '16 17:11 asvetlov

Fixes #404

asvetlov avatar Nov 11 '16 19:11 asvetlov

_FATAL_ERROR_IGNORE is a tuple of exceptions which doesn't generate noisy loop.call_exception_handler() if connection cannot be established (see https://github.com/python/asyncio/blob/master/asyncio/selector_events.py#L633) for usage example. ssl.CertificateError goes to this category -- it could be raised only at connecting stage. The exception still is thrown to outer code but not logged unless debug mode is disabled.

asvetlov avatar Nov 15 '16 16:11 asvetlov

Makes sense. Would you be able to write a unittest for this?

1st1 avatar Nov 15 '16 20:11 1st1

@asvetlov If you want this in 3.6.1 you need to add a unittest and resubmit this PR to python/cpython today.

1st1 avatar Mar 02 '17 22:03 1st1

@1st1 ok, so 3.6.1 is going out after today? btw would it also include the latest version of zlib as well because it has updated a to version above 1.2.8 this year to fix bugs and stuff.

AraHaan avatar Mar 02 '17 23:03 AraHaan

@1st1 ok, so 3.6.1 is going out after today? btw would it also include the latest version of zlib as well because it has updated a to version above 1.2.8 this year to fix bugs and stuff.

Yes. Re zlib - not sure, please check on GH or bugs.python.org or python-dev mailing list.

1st1 avatar Mar 02 '17 23:03 1st1

hmm, from the looks on http://svn.python.org/projects/external/ I only see it having zlib v1.2.3 But I could have sworn python 3.6.0 was using 1.2.8. Will look at bugs.python.org or the python-dev irc channel.

AraHaan avatar Mar 03 '17 00:03 AraHaan

@1st1 It looks like this repo was not marked as Read Only in it's settings to disable (I think it disables) the new issue / Pull Request buttons. Might want to do it explicitly in case someone does not read the readme in the redirect branch.

AraHaan avatar Nov 19 '17 22:11 AraHaan

@asvetlov are you going to resubmit this PR to python/cpython ? I hope it's not abandoned.

decaz avatar Nov 22 '17 16:11 decaz