Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 61208 invoked by uid 500); 8 Aug 2001 22:16:31 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 61197 invoked from network); 8 Aug 2001 22:16:31 -0000 Date: Wed, 8 Aug 2001 15:16:29 -0700 (PDT) From: dean gaudet To: "'new-httpd@apache.org'" Subject: Re: keepalive status In-Reply-To: Message-ID: X-comment: visit http://arctic.org/~dean/legal for information regarding copyright and disclaimer. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 290 in apache-1.3 you have two choices -- if you use hard timeouts then you don't get any notification, the request is aborted and longjmp() takes the child back to its main loop. if you use soft timeouts then you eventually can detect a closed connection by studying r->connection->aborted. (there are examples in the core.) in apache-2.0 you only have the second choice, except i'm not exactly sure of the right syntax... you may have to study the result codes of the various write operations. in either case the kernel doesn't always know the client has gone away immediately, and application notification can take some time. in particular there's no easy way to determine the client is gone if you're not writing anything to the client (i.e. you're waiting on a database query or some expensive calculation, and have nothing to write to the client). -dean On Mon, 6 Aug 2001, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote: > Quick Question : If keepalive is enabled, how is a module conveyed of a > dropped connection - OR in other words, what is a good point when a module > should clean up data after a connection has been dropped / aborted ?.. > > Thanks > -Madhu >