Skip Menu |
 

This queue is for tickets about the HTTP-Server-Simple CPAN distribution.

Report information
The Basics
Id: 27496
Status: resolved
Priority: 0/
Queue: HTTP-Server-Simple

People
Owner: Nobody in particular
Requestors: a.klink [...] cynops.de
Cc:
AdminCc:

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



Subject: HTTP::Server::Simple hangs under certain circumstances
Date: Fri, 8 Jun 2007 11:28:16 +0200
To: bug-HTTP-Server-Simple [...] rt.cpan.org
From: Alexander Klink <a.klink [...] cynops.de>
Download (untitled) / with headers
text/plain 832b
Hi Jesse, I'm trying to test our application using (Test::)HTTP::Server::Simple. I've tried different things and sometimes the test script would hang when run under prove, but not under perl, and in one situation it would hang in both cases. I've attached a few test files, here are my observations: - Running hss.t hangs under prove, works fine under perl (this uses system to call perl test_server.pl, which starts a HTTP::Server::Simple with ->background()) - Running thss_hangs.t hangs under both perl and prove, thss.t works fine. Note that the difference is only the order in use base qw/ ... /! I believe it might be related to the signal handlers in H::S::S? It would be great if you could look into that, I've wasted some hours coming up with a test script that works ... Thanks in advance, Best regards, Alex
Download thss.t
text/x-perl 231b

Message body is not shown because sender requested not to inline it.

Download thss_hangs.t
text/x-perl 231b

Message body is not shown because sender requested not to inline it.

Download hss.t
text/x-perl 106b

Message body is not shown because sender requested not to inline it.

Download test_server.pl
text/x-perl 289b

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #27496] HTTP::Server::Simple hangs under certain circumstances
Date: Fri, 8 Jun 2007 14:51:05 -0400
To: bug-HTTP-Server-Simple [...] rt.cpan.org
From: Jesse Vincent <jesse [...] fsck.com>
Download (untitled) / with headers
text/plain 259b
What OS are you running on? We're using THSS under prove quite a bit. Does WWW::Mechanize install cleanly for you? That also uses THHS. On Jun 8, 2007, at 5:28 AM, Alexander Klink via RT wrote: Show quoted text
> > - Running thss_hangs.t hangs under both perl and prove,
Download PGP.sig
application/pgp-signature 186b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #27496] HTTP::Server::Simple hangs under certain circumstances
Date: Fri, 8 Jun 2007 21:10:15 +0200
To: Jesse via RT <bug-HTTP-Server-Simple [...] rt.cpan.org>
From: Alexander Klink <a.klink [...] cynops.de>
Download (untitled) / with headers
text/plain 841b
Hi Jesse, thanks for the quick response. On Fri, Jun 08, 2007 at 02:51:29PM -0400, Jesse via RT wrote: Show quoted text
> What OS are you running on?
Mac OS X, but I have the same behaviour on Debian as well. Show quoted text
> We're using THSS under prove quite a bit.
I would've guessed so, which makes the bug quite a bit more weird ... Show quoted text
> Does WWW::Mechanize install cleanly for you? That also uses THHS.
Yes, funnily enough, it does (again on both platforms) :-/ Best regards, Alex -- Dipl.-Math. Alexander Klink | IT-Security Engineer | a.klink@cynops.de mobile: +49 (0)178 2121703 | Cynops GmbH | http://www.cynops.de ----------------------------+----------------------+--------------------- HRB 7833, Amtsgericht | USt-Id: DE 213094986 | Geschäftsführer: Bad Homburg v. d. Höhe | | Martin Bartosch
Download (untitled) / with headers
text/plain 179b
Let us know if you're still having issues with this under a newer HSS and we'll see if we can replicate. There have been a lot of signal improvements in the last 7 years. -kevin


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.