Skip to content

Add option to create reusable sockets #3

Closed
@bablokb

Description

@bablokb

According to the release-notes for CP 9.0.0:

  • Incompatible change: Require explicit socket port reuse. Use socket.setsockopt(pool.SOL_SOCKET, pool.SO_REUSEADDR, 1), as in CPython.

you have to explicitly mark sockets for reuse. Currently, user code has to create a session, call get and then manipulate the socket from the Response-object.

I think it would be much simpler to have this rather low-level manipulation of sockets as part of ConnectionManager. Or even better, as part of socketpool as the factory of sockets. But the latter would need changes to CP itself.

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