Message155816
SocketServer employs select.select to achieve timeout behaviour on accepting new requests. Unfortunately, the way this is implemented makes it tricky to bypass this behaviour for users that want to achieve timeout in a different manner.
This defect presents two patches. One shows how we delegate the timeout to a new function, _get_request_timeout(), that can be overridden by subclasses.
The second shows a concrete version of this function, one that uses the socket's own timeout property rather than select, to get the same behaviour. |
|
Date |
User |
Action |
Args |
2012-03-14 23:22:58 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
2012-03-14 23:22:58 | kristjan.jonsson | set | messageid: <1331767378.71.0.470789063251.issue14307@psf.upfronthosting.co.za> |
2012-03-14 23:22:58 | kristjan.jonsson | link | issue14307 messages |
2012-03-14 23:22:58 | kristjan.jonsson | create | |
|