From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T7c-0001Lp-7I for qemu-devel@nongnu.org; Wed, 15 Jan 2014 11:15:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3T7W-0006Ai-3D for qemu-devel@nongnu.org; Wed, 15 Jan 2014 11:15:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T7V-0006AT-Q2 for qemu-devel@nongnu.org; Wed, 15 Jan 2014 11:15:10 -0500 Message-ID: <52D6B3F4.2030605@redhat.com> Date: Wed, 15 Jan 2014 17:14:44 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1389775713-996-1-git-send-email-famz@redhat.com> <52D696F6.5020307@redhat.com> <52D69CDD.6000809@redhat.com> <52D6A080.3070206@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Kevin Wolf , Fam Zheng , Stefan Hajnoczi , Michael Tokarev , QEMU Developers , Alex Bligh , Miroslav Rezanina , =?UTF-8?B?TGx1w61zIFZpbGFub3Y=?= =?UTF-8?B?YQ==?= , Richard Henderson 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