Skip to content

Don't log OSError exceptions in transports #257

Closed

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 😃

Activity

  1. added a commit that references this issue on Jul 13, 2019
    2c26c50
  2. added a commit that references this issue on Jul 18, 2019
    ef29dab
  3. added a commit that references this issue on Aug 14, 2019
    10214b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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