Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 7706 invoked from network); 15 Oct 2007 17:52:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2007 17:52:03 -0000 Received: (qmail 17750 invoked by uid 500); 15 Oct 2007 17:51:49 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 17712 invoked by uid 500); 15 Oct 2007 17:51:49 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 17703 invoked by uid 99); 15 Oct 2007 17:51:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 10:51:49 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.103.221.48] (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 17:51:49 +0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20071015175116.NMCT25022.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Mon, 15 Oct 2007 18:51:16 +0100 Received: from s5h.net ([81.110.242.129]) by aamtaout01-winn.ispmail.ntl.com with ESMTP id <20071015175116.NBTL219.aamtaout01-winn.ispmail.ntl.com@s5h.net> for ; Mon, 15 Oct 2007 18:51:16 +0100 Received: (qmail 12112 invoked by uid 1010); 15 Oct 2007 18:51:14 +0100 Received: from unknown (HELO workstation) (192.168.0.250) by s5h.net with SMTP; 15 Oct 2007 18:51:14 +0100 Date: Mon, 15 Oct 2007 18:51:13 +0100 From: ed To: modules-dev@httpd.apache.org Subject: Re: ap_rwrite and timeout Message-ID: <20071015185113.2dc8d0c0@workstation> In-Reply-To: <20071015100517.8urkphu9dwksw8k0@webmail.art122-5.net> References: <20071015100517.8urkphu9dwksw8k0@webmail.art122-5.net> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.11; i486-pc-linux-gnu) X-Face: =\=1ht]b*gboJ:&+:3x1vGz}fCe40TZJ9s@L2~YGi}]c(fY-_7J]wUR.6MSH\oeq#@H6aAERh(<<1miWJ|x/-1g`r3EmzY3FE?VxmEih9%ETmPd7zChR1"zWC$iuK{|{R+Ss{I3w(KC"_LM%S! Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_h9NtNXVygx804cuzXuDAo78; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Virus-Checked: Checked by ClamAV on apache.org --Sig_h9NtNXVygx804cuzXuDAo78 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 15 Oct 2007 10:05:17 +0200 marc.despland@art122-5.net wrote: > I am writing a module for Apache 2.0.59 that works like a proxy to =20 > expose a Dime Soap Web service over classical HTTP >=20 > The problem is when i send the content to the client, if the client =20 > closes the connection or pauses the download, i have to wait the =20 > timeout to detect the problem The thing with the timeout is that it's the time for the ACK to come back from the client. The packet could be written to a DROP firewall rule, or anything really. If a ICMP port unreach, or ICMP host unreach comes in response then the timeout, in effect, should be triggered automatically as the socket will be closed. > The timeout is the Timeout directive of the server, is it possible > to use a shorter timeout for my module ? or having something like =20 > ap_hard_time_out() ? >=20 > or how to use a function like poll with a request_rec ? to detect if =20 > the client is ready to receive a packet I think the ap functions handle this internally, so I don't know how you would hook into those things. This probably doesn't answer your question, generally, the application does not deal with socket issues. If you wish to kill off the socket, you might find looking for the file descriptor, or socket handle via the source address and source port helpful, to then write a FIN/RST or close it. But this is probably random land and I advise that you don't give up too much time on this track. --=20 The SCSI Controller to the Netapp is going off like a car alarm because of a trailing space in /etc/netgroups. Microsoft is RNA. :: http://www.s5h.net/ :: http://www.s5h.net/gpg --Sig_h9NtNXVygx804cuzXuDAo78 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHE6iR4dyr7s6PRYgRAgOaAJ4kqA76xdI9D0MH5MSLZCvs98tMNgCfUtBq 7WnhZFiqXUz2ISF4q1UVcXY= =voTB -----END PGP SIGNATURE----- --Sig_h9NtNXVygx804cuzXuDAo78--