Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F5E113A4 for ; Wed, 20 Apr 2011 16:48:44 +0000 (UTC) Received: (qmail 68151 invoked by uid 500); 20 Apr 2011 16:48:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 68105 invoked by uid 500); 20 Apr 2011 16:48:40 -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 68097 invoked by uid 99); 20 Apr 2011 16:48:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 16:48:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.111.4.28] (HELO out4.smtp.messagingengine.com) (66.111.4.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 16:48:35 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 3B21920B80; Wed, 20 Apr 2011 12:48:14 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 20 Apr 2011 12:48:14 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpout; bh=3KH5cmni/BC/t/I+YfsOErOXEO0=; b=mvNEJIywNDV1HWhPs+mxqoAhK7mYHNSrQ05qYOXrdxlgN2Jrw0oopqSjC2qV8n5jDzs6w01VEPQ5qq9Sk2sUhX4HFG4IUvg8EgiOSVpU91r/C5cj137VKVvS3jmxzDvMyClEFOonrz0FTq7vPPt5Xv/tIPBft+SzdjZR0qbdSMU= X-Sasl-enc: uIKDQslR+C1b7bu7ObPQ+oNoFloZhYZYSLH55thlrBWe 1303318094 Received: from asura.catseye.org (unknown [198.111.179.55]) by mail.messagingengine.com (Postfix) with ESMTPSA id 0079B402FFD; Wed, 20 Apr 2011 12:48:13 -0400 (EDT) Message-ID: <4DAF0E4D.4030802@catseye.org> Date: Wed, 20 Apr 2011 12:48:13 -0400 From: Mark Montague User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.7) Gecko/20100801 Lanikai/3.1.1 MIME-Version: 1.0 To: users@httpd.apache.org, bostjan@a2o.si References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] Incomplete file downloads if Apache HTTPD is killed On April 20, 2011 11:11 , Bostjan Skufca wrote: > if a server is killed (SIGKILL) during a "large" static file transfer, > then the client is not notified by his browser that file has not been > completely downloaded. On Win it just says it is not a valid Win32 > application or corrupted or sth. > Now I know this is not a general problem and a graceful restart is the > way to go around this, but if I do an upgrade then proper restart is > required, or at least I think I remember I had problems with graceful > restart in such situations. Sending a SIGKILL is an unfriendly way to end a process -- it causes the kernel to immediately terminate the process, without giving the process any chance to clean up. SIGKILL is thus not one of the signals handled specially by Apache HTTP Server. For a list of the signals that are handled specially, see http://httpd.apache.org/docs/2.2/stopping.html If you'd like to completely stop Apache HTTP Server so you can manually restart it later, then sending SIGWINCH will cause httpd to exit gracefully after completing any current requests or after GracefulShutdownTimeout is reached, whichever comes first. Alternatively, you can cause httpd to exit more quickly, interrupting any current requests, by sending it a SIGTERM. I don't know for sure if either of these will cause a TCP RST to be sent to the client, but I think the odds are better than if you used a SIGKILL. -- Mark Montague mark@catseye.org --------------------------------------------------------------------- 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