Il 15/01/2014 16:40, Peter Maydell ha scritto: > Further hacking suggests this is probably because we're not > implementing the curl timeout callback, which curl uses to say > "call me back in X milliseconds, even if there's no filedescriptor > action". It looks like the first time or two around curl says "call > back in 1ms" before it gets things rolling enough to be waiting > on a filedescriptor. (Then after that it sets a 2second timeout > presumably so it can deal with unexpected situations like the > far end never responding.) > > What's the best way to get QEMU's event loop to call back > after a specified timeout?
You can use aio_timer_new or aio_timer_init. Paolo