Skip to content

Don't log OSError exceptions in transports #257

Closed
@Tobotimus

Description

@Tobotimus
  • uvloop version: 0.12.2
  • Python version: 3.7.4
  • Platform: Linux (Ubuntu 19.04)
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: Yes

This refers to the bpo here: https://bugs.python.org/issue37035

And relevant asyncio changes: python/cpython#13548.

In particular, I am getting this common SSL error in an aiohttp client application of mine:

Fatal error on transport
protocol: <uvloop.loop.SSLProtocol object at 0x7f3a9c52d050>
transport: <TCPTransport closed=False reading=False 0x55d12adcc430>
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 574, in uvloop.loop.SSLProtocol._do_shutdown
  File "/home/tobyh/.pyenv/versions/3.7.4/lib/python3.7/ssl.py", line 778, in unwrap
    return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2629)

I'd be willing to PR a fix when I get the time, someone else is welcome to if they beat me to it however 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions