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)



MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_POLICY_SIGNSOME,DK_POLICY_SIGNSOME,SPF_PASS
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: local policy)
Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 40C914D81A9 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Fri, 8 Jun 2007 05:28:29 -0400 (EDT)
Received: (qmail 14847 invoked by alias); 8 Jun 2007 09:28:28 -0000
Received: from cynops.de (HELO mail.cynops.de) (82.149.225.69) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Jun 2007 02:28:26 -0700
Received: from cy10loc.cynops.de (cy10loc [172.16.0.10]) by mail.cynops.de (Postfix) with ESMTP id E1A1C6C91D for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Fri, 8 Jun 2007 11:28:19 +0200 (CEST)
Received: from localhost (unknown [172.16.0.6]) by cy10loc.cynops.de (Postfix) with ESMTP id 9766EC8080 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Fri, 8 Jun 2007 11:28:19 +0200 (CEST)
Delivered-To: cpan-bug+http-server-simple [...] diesel.bestpractical.com
Subject: HTTP::Server::Simple hangs under certain circumstances
User-Agent: Mutt/1.5.13 (2006-08-11)
Return-Path: <a.klink [...] cynops.de>
X-Original-To: bug-HTTP-Server-Simple [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 8 Jun 2007 11:28:16 +0200
Message-Id: <20070608.7980f5d8be973f45fe1725c64bba6a57 [...] cynops.de>
To: bug-HTTP-Server-Simple [...] rt.cpan.org
From: Alexander Klink <a.klink [...] cynops.de>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
X-RT-Original-Encoding: us-ascii
Content-Length: 832
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
Content-Type: application/x-troff
content-disposition: attachment; filename="thss.t"
Content-Transfer-Encoding: quoted-printable
Content-Length: 231
Download thss.t
text/x-perl 231b

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

Content-Type: application/x-troff
content-disposition: attachment; filename="thss_hangs.t"
Content-Transfer-Encoding: quoted-printable
Content-Length: 231
Download thss_hangs.t
text/x-perl 231b

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

Content-Type: application/x-troff
content-disposition: attachment; filename="hss.t"
Content-Transfer-Encoding: quoted-printable
Content-Length: 106
Download hss.t
text/x-perl 106b

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

Content-Type: application/x-perl
content-disposition: attachment; filename="test_server.pl"
Content-Transfer-Encoding: quoted-printable
Content-Length: 289
Download test_server.pl
text/x-perl 289b

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

MIME-Version: 1.0 (Apple Message framework v752.3)
In-Reply-To: <rt-3.6.HEAD-16404-1181294932-742.27496-4-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.752.3)
X-PGP-Agent: GPGMail 1.1.2 (Tiger)
References: <RT-Ticket-27496 [...] rt.cpan.org> <20070608.7980f5d8be973f45fe1725c64bba6a57 [...] cynops.de> <rt-3.6.HEAD-16404-1181294932-742.27496-4-0 [...] rt.cpan.org>
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-6--989480699"
Received: from [10.0.1.9] (unknown [66.92.67.231]) by diesel.bestpractical.com (Postfix) with ESMTP id 10F964D8284; Fri, 8 Jun 2007 14:51:16 -0400 (EDT)
Delivered-To: cpan-bug+http-server-simple [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #27496] HTTP::Server::Simple hangs under certain circumstances
Return-Path: <jesse [...] fsck.com>
X-Original-To: bug-HTTP-Server-Simple [...] rt.cpan.org
Date: Fri, 8 Jun 2007 14:51:05 -0400
Message-Id: <DC59FB5B-62FC-4B4D-808E-9621C861530D [...] fsck.com>
To: bug-HTTP-Server-Simple [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Jesse Vincent <jesse [...] fsck.com>
RT-Message-ID: <rt-3.6.HEAD-16406-1181328685-1437.27496-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: US-ASCII
X-RT-Original-Encoding: utf-8
Content-Length: 259
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,
Content-Description: This is a digitally signed message part
content-type: application/pgp-signature; name="PGP.sig"; x-mac-type="70674453"
content-disposition: inline; filename="PGP.sig"
Content-Transfer-Encoding: 7bit
Content-Length: 186
Download PGP.sig
application/pgp-signature 186b

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_POLICY_SIGNSOME,DK_POLICY_SIGNSOME,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-16406-1181328685-1437.27496-6-0 [...] rt.cpan.org>
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: local policy)
References: <RT-Ticket-27496 [...] rt.cpan.org> <20070608.7980f5d8be973f45fe1725c64bba6a57 [...] cynops.de> <rt-3.6.HEAD-16404-1181294932-742.27496-4-0 [...] rt.cpan.org> <DC59FB5B-62FC-4B4D-808E-9621C861530D [...] fsck.com> <rt-3.6.HEAD-16406-1181328685-1437.27496-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: iso-8859-1
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 23A3C4D8289 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Fri, 8 Jun 2007 15:10:29 -0400 (EDT)
Received: (qmail 18855 invoked by alias); 8 Jun 2007 19:10:28 -0000
Received: from cynops.de (HELO mail.cynops.de) (82.149.225.69) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Jun 2007 12:10:26 -0700
Received: from cy10loc.cynops.de (cy10loc [172.16.0.10]) by mail.cynops.de (Postfix) with ESMTP id 033BD6C924 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Fri, 8 Jun 2007 21:10:20 +0200 (CEST)
Received: from localhost (unknown [172.16.0.6]) by cy10loc.cynops.de (Postfix) with ESMTP id ADCF0C8080 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Fri, 8 Jun 2007 21:10:19 +0200 (CEST)
Delivered-To: cpan-bug+http-server-simple [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #27496] HTTP::Server::Simple hangs under certain circumstances
User-Agent: Mutt/1.5.13 (2006-08-11)
Return-Path: <a.klink [...] cynops.de>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-HTTP-Server-Simple [...] rt.cpan.org
Date: Fri, 8 Jun 2007 21:10:15 +0200
Message-Id: <20070608.b9e9f111fa8254e594f1c8b4bf5b10be [...] cynops.de>
To: Jesse via RT <bug-HTTP-Server-Simple [...] rt.cpan.org>
Content-Transfer-Encoding: 8bit
From: Alexander Klink <a.klink [...] cynops.de>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-16382-1181329869-1433.27496-0-0 [...] rt.cpan.org>
Content-Length: 841
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
MIME-Version: 1.0
In-Reply-To: <20070608.7980f5d8be973f45fe1725c64bba6a57 [...] cynops.de>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20070608.7980f5d8be973f45fe1725c64bba6a57 [...] cynops.de>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-14121-1422893928-512.27496-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 179
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.