Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 74203 invoked from network); 24 Jun 2009 13:10:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 13:10:10 -0000 Received: (qmail 43722 invoked by uid 500); 24 Jun 2009 13:10:18 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 43705 invoked by uid 500); 24 Jun 2009 13:10:18 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 43696 invoked by uid 99); 24 Jun 2009 13:10:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 13:10:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elmar@cmbi.ru.nl designates 131.174.88.33 as permitted sender) Received: from [131.174.88.33] (HELO newcmbi2.cmbi.ru.nl) (131.174.88.33) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 13:10:08 +0000 Received: from webmail.cmbi.ru.nl (www.cmbi.ru.nl [131.174.88.160]) by newcmbi2.cmbi.ru.nl (8.13.8/8.13.8) with ESMTP id n5OD9jnU024686; Wed, 24 Jun 2009 15:09:46 +0200 Received: from 83.241.234.4 (SquirrelMail authenticated user elmar) by webmail.cmbi.ru.nl with HTTP; Wed, 24 Jun 2009 08:09:46 -0500 (CDT) Message-ID: In-Reply-To: <4A4211B7.3050704@ice-sa.com> References: <77db07ec39c3fad19aad5fc2f2775be1.squirrel@webmail.cmbi.ru.nl> <4A4211B7.3050704@ice-sa.com> Date: Wed, 24 Jun 2009 08:09:46 -0500 (CDT) From: "Elmar Krieger" To: aw@ice-sa.com Cc: users@httpd.apache.org User-Agent: SquirrelMail/1.4.17 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache suddenly stops serving requests, recv() returns -1/errno=EAGAIN forever >> Dear Apache users, >> >> I'm forced to write yet another program that downloads HTTP files from >> an >> Apache server, > ... > Naive question : why would you do that, when there are probably at least > 10 existing libraries/utilities that already do that, and do it right ? > > I mean that downloading a file from a webserver is not just a matter of > opening a socket and reading bytes from it. There are such things as > status codes, HTTP headers, encoding, transfer-encoding, etc.. > Do you really want to re-invent the wheel ? I did of course start with code from the web, but that was not reliable enough. For example the download routines of Firefox and Safari are not satisfactory, because they also hang forever occasionally, and don't automatically restart the transfer with a new request. I need it 100% fool-proof. Anyway, could you point me to the most reliable public domain (not GNU GPL) library you know, that compiles in Linux, Windows and MacOSX? Then I can compare the code.. And any idea under which circumstances a recv() from a socket connection to Apache can report -1/errno=EAGAIN for an hour without progress would still be appreciated. It's a server side problem, because it happens from clients all over the world ;-) Thanks for your help, Elmar --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org