<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 7, 2014 at 11:20 AM, Yuriy Taraday <span dir="ltr"><<a href="mailto:yorik.sar@gmail.com" target="_blank">yorik.sar@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div>All in all it sounds like an eventlet bug. I'm not sure how it can be dealt with though.</div>

</div></div></blockquote><div><br></div><div>Digging into it I found out that eventlet uses time.time() by default that is not monotonic. There's no clear way to replace it, but you can workaround this: </div><div>1. Get monotonic clock function here: <a href="http://stackoverflow.com/a/1205762/238308">http://stackoverflow.com/a/1205762/238308</a> (note that for FreeBSD or MacOS you'll have to use different constant).</div>

<div>2. Make eventlet's hub use it:</div><div>eventlet.hubs._threadlocal.hub = eventlet.hubs.get_default_hub().Hub(monotonic_time)</div></div><div><br></div>-- <br><br><div>Kind regards, Yuriy.</div>
</div></div>