Skip to content

dropping asyncio.open_unix_socket's writer will drop the connection. #109986

@aspizu

Description

@aspizu

Bug report

Bug description:

async def socket2():
   reader, _ = await asyncio.open_unix_connection(HYPRLAND_SOCKET2_ADDRESS)
   del _  # <-- This causes issues
   while data := await reader.readuntil(b"\n"):
      yield data

In this code, dropping the writer makes the reader malfunction.

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions