Message155816
| Author |
kristjan.jonsson |
| Recipients |
kristjan.jonsson |
| Date |
2012年03月14日.23:22:57 |
| SpamBayes Score |
1.260332e-05 |
| Marked as misclassified |
No |
| Message-id |
<1331767378.71.0.470789063251.issue14307@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|