Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 7690 invoked from network); 18 Oct 2007 14:12:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 14:12:40 -0000 Received: (qmail 23551 invoked by uid 500); 18 Oct 2007 14:12:20 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 23487 invoked by uid 500); 18 Oct 2007 14:12:20 -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 23464 invoked by uid 99); 18 Oct 2007 14:12:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 07:12:20 -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 [195.91.78.20] (HELO sweet.t-mobile.sk) (195.91.78.20) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 14:12:17 +0000 Received: from monika (monika.t-mobile.sk [195.91.60.181]) by sweet.t-mobile.sk (8.13.1/8.13.8) with SMTP id l9IEBKP8004510 for ; Thu, 18 Oct 2007 16:11:20 +0200 Message-ID: <005f01c8118f$f57b1960$ba64600a@eurotel.sk> From: "Gabriel Pap" To: Subject: timeout on request handler Date: Thu, 18 Oct 2007 16:05:37 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org Hi! I need to abort the request handler in my module after a timeout. What is the proper way to do it? Do I have to poll for the current time? How can I set an alarm? request_handler(request_rec* r) { ... while () { .. do some time demanding processing if (timeout) return HTTP_SERVICE_TEMPORARY_UNAVAILABLE; // or whatever } ... } Thanks, Gabriel