Message179211
Here is a version which uses epoll to service a number of pipes which is larger than maxevents. (If NUM_WRITERS is too large then I get "OSError: [Errno 24] Too many open files".)
All pipes get serviced and the output is:
Working with 20 FDs, 5 maxevents
[5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43]
[15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43]
[25, 27, 29, 31, 33, 35, 37, 39, 41, 43]
[35, 37, 39, 41, 43]
The lists show the (sorted) unseen writers at each loop. |
|
Date |
User |
Action |
Args |
2013-01-06 19:49:15 | sbt | set | recipients:
+ sbt, pitrou, neologix |
2013-01-06 19:49:15 | sbt | set | messageid: <1357501755.33.0.743815825748.issue16873@psf.upfronthosting.co.za> |
2013-01-06 19:49:15 | sbt | link | issue16873 messages |
2013-01-06 19:49:15 | sbt | create | |
|