Closed
Description
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
Labels
No labels