Re: Inline::Java timeout?
[email protected] Tue, 15 Apr 2014 21:39:36 +1000
| Newsgroups | perl.inline |
|---|---|
| Message-ID | <BB362F67FC504E32A56CE4F24CD82C12@OwnerPC311012> |
From: Bill Moseley Sent: Tuesday, April 15, 2014 10:19 AM To: [email protected] Subject: Re: Inline::Java timeout? >>> Looks like there’s no-one currently around here to help you out. >>> Maybe try somewhere like perlmonks (http://www.perlmonks.org) if you’re >>> still trying to find a solution. >> >> Well, if there isn't a specific solution for Inline then I'll go the ALRM >> approach. > > I'm wondering how risky this is. Since it appears to be sitting on > read() I would need to use "unsafe" signal handling: > http://search.cpan.org/~rgarcia/Perl-Unsafe-Signals-0.02/Signals.pm > Years back I remember fighting segfaults in mod_perl when using ALRM to > interrupt external calls. > Sure would be much cleaner if could use a select() timeout, but I'd need > help knowing where that would need to be implemented. The only Inline documentation regarding Inline and mod_perl that I know of is the "How do I use Inline with mod_perl?" demo in the C-Cookbook.pod. (I don't know if there's anything of assistance to you in that.) I can't help you because I don't know much about mod_perl; nor do I know much about the inner workings of web servers. And I'm not set up to be able to do any helpful testing re mod_perl and apache. That's why I suggested perlmonks - I think there would be a number of people there who *do* know mod_perl, apache and Inline. I still think that's the best place to get help piecing the elements together. I mean, there might also be someone subscribed here who has the same capabilities - but we haven't heard from that person yet, so I'm thinking it's unlikely that we will :-) If you're unfamiliar with perlmonks, you can post anonymously (no need to sign up) by asking your question in the text box at the bottom of http://www.perlmonks.org/?node=Seekers%20of%20Perl%20Wisdom Then read replies and post your responses to those replies at http://www.perlmonks.org/?node=Newest%20Nodes Cheers, Rob