On 15 January 2014 15:29, Peter Maydell <peter.mayd...@linaro.org> wrote:
> I threw some debug printouts in, and it looks like libcurl
> is just never calling the curl_sock_cb, so we never register
> the fd with QEMU's event loop, and so nothing happens once
> the first read AIO has commenced.

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?

thanks
-- PMM

Reply via email to