|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|
Download RPC-XML suggestion: method timeout.eml
X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: <email@example.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 [220.127.116.11]) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id l1AJNHRR095202 for <firstname.lastname@example.org>; Sat, 10 Feb 2007 11:23:17 -0800 (PST) Received: from giraffe.giraffe-data.com (email@example.com [18.104.22.168]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id l1AJNCHB079160 for <firstname.lastname@example.org>; 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 email@example.com; Sat, 10 Feb 2007 19:23:11 +0000 Message-ID: <firstname.lastname@example.org> Date: 10 Feb 2007 19:03:16 +0000 From: email@example.com (Bryan Henderson) To: firstname.lastname@example.org 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