Skip to content

Rsloop on windows hangs instead of throwing Excption when connection is refused. #60

Description

@tapetersen

Simple test (fails only on windows)

import asyncio
import rsloop
async def main() -> None:
    loop = asyncio.get_running_loop()
    transport, _ = await asyncio.wait_for(loop.create_connection(asyncio.Protocol, host="127.0.0.1", port=2435), timeout=3.0)
    transport.close()

asyncio.run(main()) # ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection
rsloop.run(main()) # TimoutError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions