Message306384
> Perhaps you can just dup() the socket? That's what the ref counter is for IIRC.
Sure. That's another option.
But for asyncio with a lot of concurrent users, I'm not sure that it's ok to create a temporary file descriptor, since there is a risk of hitting the maximum number of open file descriptors :-(
Depending on the platform and the event loop implementation, the limit may be low. |
|
Date |
User |
Action |
Args |
2017-11-16 17:05:36 | vstinner | set | recipients:
+ vstinner, gvanrossum, pitrou, asvetlov, Ben.Darnell, yselivanov |
2017-11-16 17:05:36 | vstinner | set | messageid: <1510851936.61.0.213398074469.issue32038@psf.upfronthosting.co.za> |
2017-11-16 17:05:36 | vstinner | link | issue32038 messages |
2017-11-16 17:05:36 | vstinner | create | |
|