Skip to content

Asyncio raise ConnectionResetError without the message set. #94061

Closed as not planned
@sileht

Description

@sileht

Bug report

Asyncio may raise ConnectionResetError without instanciante it.

ConnectionResetError: null
  File "redis/asyncio/connection.py", line 700, in connect
    await self._connect()
  File "redis/asyncio/connection.py", line 735, in _connect
    reader, writer = await asyncio.open_connection(
  File "asyncio/streams.py", line 47, in open_connection
    transport, _ = await loop.create_connection(
  File "asyncio/base_events.py", line 1089, in create_connection
    transport, protocol = await self._create_connection_transport(
  File "asyncio/base_events.py", line 1119, in _create_connection_transport
    await waiter

Libraries (like redis-py) expected all OSError to be instantiated with .args set.

Your environment

python 3.10.4
Ubuntu 20.04

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions