Dragan Juric(deleted)
|
select() not respecting the timeout parameter?
|
Dragan Juric(deleted)
06/28/2012 3:20 PM
post93939
|
select() not respecting the timeout parameter?
Hello,
While working on EMA (the service that enrolls a device into BDS) I noticed that a select.select() call from python
(which maps into regular C select() Unix/Posix API) does not respect the timeout.
I give it a timeout of 300 (5 min) but it timeouts semi-randomly, sometimes after 8 min, sometimes after 9 or 6 or 5 or
10... and the consequence of that was promptly reported back to me as a gating issue.
For the time being, I reworked it as a loop with timeout of 0 at select() and a call to time.sleep(), but, does anyone
have any idea what's going on here?
|
|
|