Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtT7S-0001lM-Ti for qemu-devel@nongnu.org; Mon, 13 Apr 2009 16:51:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtT7N-0001da-3L for qemu-devel@nongnu.org; Mon, 13 Apr 2009 16:51:05 -0400 Received: from [199.232.76.173] (port=42640 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtT7M-0001dJ-T8 for qemu-devel@nongnu.org; Mon, 13 Apr 2009 16:51:00 -0400 Received: from main.gmane.org ([80.91.229.2]:41766 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LtT7M-00072I-E3 for qemu-devel@nongnu.org; Mon, 13 Apr 2009 16:51:00 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LtT7I-0000u8-E9 for qemu-devel@nongnu.org; Mon, 13 Apr 2009 20:50:57 +0000 Received: from c-71-202-202-194.hsd1.ca.comcast.net ([71.202.202.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Apr 2009 20:50:56 +0000 Received: from nolan by c-71-202-202-194.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Apr 2009 20:50:56 +0000 From: Nolan Date: Mon, 13 Apr 2009 20:50:45 +0000 (UTC) Message-ID: References: <1239328581.15350.688.camel@voxel> <5EC9D648-B337-455A-B3E2-C14ED7237711@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: news Subject: [Qemu-devel] Re: [PATCH] An alternative http protocol Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Alexander Graf suse.de> writes: > FWIW libcurl supports these too plus FTP and TFTP, though I haven't > tried it myself. The good thing about the FTP/TFTP support is that it > should bascially work exactly the same, so libcurl interprets the > "range" parameter and ends up doing "the right thing" for the > respective protocols. I've poked around a bit, and it looks like libneon makes doing AIO difficult. Getting FTP for free is pretty compelling, and there might be a use-case for TFTP out there somewhere. So I think the smart thing to do is to add a simple cache to your libcurl based implementation. Either the extremely simple 1 entry cache I used, or a more clever one. I'm happy to add it after you convert to AIO. For the use case of booting over HTTP from an .iso file, the cache is not really optional. A cacheless install of debian etch from an Apache server resulted in ~60MB of log entries, and took hours. Doing this to someone else's server is extremely anti-social.