qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support
Date: Wed, 15 Jan 2014 15:40:35 +0000

On 15 January 2014 15:29, Peter Maydell <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]