Skip Menu |

This queue is for tickets about the RPC-XML CPAN distribution.

Report information
The Basics
Id: 34556
Status: open
Priority: 0/
Queue: RPC-XML

People
Owner: rjray [...] blackperl.com
Requestors: rjray [...] blackperl.com
Cc: bryanh [...] giraffe-data.com
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Attachments


CC: bryanh [...] giraffe-data.com
Subject: Specify timeout settings for methods and at server-level
See attached email. Consider supporting a per-call timeout in server configuration, with the capability of individual methods/funcs to specify their own timeouts.
Subject: RPC-XML suggestion: method timeout.eml
X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: <bryanh@giraffe-data.com> X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on shell.rawbw.com X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id l1AJNHRR095202 for <rjray@shell.rawbw.com>; Sat, 10 Feb 2007 11:23:17 -0800 (PST) Received: from giraffe.giraffe-data.com (mail@adsl-64-171-19-66.dsl.sntc01.pacbell.net [64.171.19.66]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id l1AJNCHB079160 for <rjray@blackperl.com>; Sat, 10 Feb 2007 11:23:17 -0800 (PST) Received: from localhost ([127.0.0.1] helo=giraffe.giraffe-data.com ident=bryanh) by giraffe.giraffe-data.com with esmtp (Exim 4.52) id 1HFxoV-00074F-GJ for rjray@blackperl.com; Sat, 10 Feb 2007 19:23:11 +0000 Message-ID: <98411.bryanh@giraffe-data.com> Date: 10 Feb 2007 19:03:16 +0000 From: bryanh@giraffe-data.com (Bryan Henderson) To: rjray@blackperl.com Subject: RPC-XML suggestion: method timeout I have been using your RPC-XML Perl package for a while, and like it a lot. Here's a suggestion for additional function with a few lines of code: In a single-threaded server like this, a hung XML-RPC method can do a lot of damage. I use alarm() or Time::HiRes::setitimer() in my method code to deal with this. But since it's a common problem for all methods, it would be convenient to have RPC::XML::Procedure do that for me. It would also be nice to have a default method timeout for the whole server. -- Bryan Henderson San Jose, California