Debian Patches

Status for libhttp-server-simple-perl/0.52-3

Patch Description Author Forwarded Bugs Origin Last update
fix_port_in_use_in_test.patch Fix port already in use test failure Between the IPv4 and IPv6 tests we need to bump the port number
to prevent the test suite failing and consequently hanging the
build process
Daniel Lintott <daniel@serverb.co.uk> yes 2014-05-30
0002-Pipe-version-parent-waits-for-the-child-to-say-OK.patch Pipe version: parent waits for the child to say "OK" via a pipe Niko Tyni <ntyni@iki.fi> yes debian upstream 2015-10-18
0001-Handle-EINTR-and-read-errors-correctly.patch [PATCH 1/3] Handle EINTR and read errors correctly
_sysread_1 now encapsulates the two call sites of sysread.

Functional changes here:

* If we get a *read error* rather than EOF in parse_request or
parse_headers, those functions return undef. That is correct,
because otherwise we might process a partial request.

* But if the error is EINTR, we ignore it and keep reading.

Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143215
Ian Jackson <ijackson@chiark.greenend.org.uk> no 2026-09-21
0002-tests-Provide-fetch_interactive-and-normal-fetch-wra.patch [PATCH 2/3] tests: Provide fetch_interactive, and normal fetch wrapper

We'll need fetch_interactive for the EINTR test case.
Ian Jackson <ijackson@chiark.greenend.org.uk> no 2026-09-21
0003-tests-Test-EINTR.patch [PATCH 3/3] tests: Test EINTR
I have tested this test, by experimentally reverting
Handle EINTR and read errors correctly

> 1..36
> ok 1 - constructor set family properly
> ok 2 - Constructor set port correctly
> HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:49019/
> ok 3 - pid is numeric
> ok 4 - Returns a page
> ok 5 - constructor set family properly
> ok 6 - Constructor set port correctly
> HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:49020/
> ok 7 - pid is numeric
> ok 8 - Returns a page
> ok 9 - constructor set family properly
> ok 10 - Constructor set port correctly
> SlowServer: You can connect to your server at http://localhost:49021/
> ok 11 - pid is numeric
> ok 12 - Returns a page
> ok 13 - constructor set family properly
> ok 14 - Constructor set port correctly
> SlowServer: You can connect to your server at http://localhost:49022/
> ok 15 - pid is numeric
> ok 16 - Returns a page
> ok 17 - family OK
> HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:49023/
> ok 18 - pid is numeric
> ok 19 - Returns a page
> ok 20 - knows what a request isn't
> ok 21 - HTTP/1.1 request
> ok 22 - HTTP/0.9 request
> # SIGWINCH received
> not ok 23 - HTTP/1.1 request with EINTR
> # Failed test 'HTTP/1.1 request with EINTR'
> # at t/01live.t line 95.
> # 'HTTP/1.0 400 Bad request
> # Content-Type: text/html
> # Content-Length: 193
> #
> # <html>
> # <head>
> # <title>Bad Request</title>
> # </head>
> # <body>
> # <h1>Bad Request</h1>
> #
> # <p>Your browser sent a request which this web server could not
> # grok.</p>
> # </body>
> # </html>
> # '
> # doesn't match '/Congratulations/'
> ok 24 - Signaled 1 process successfully
> ok 25 - family OK
> HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:49023/
> ok 26 - pid is numeric
> ok 27 - Returns a page
> ok 28 - knows what a request isn't
> ok 29 - HTTP/1.1 request
> ok 30 - HTTP/0.9 request
> # SIGWINCH received
> not ok 31 - HTTP/1.1 request with EINTR
> # Failed test 'HTTP/1.1 request with EINTR'
> # at t/01live.t line 95.
> # 'HTTP/1.0 400 Bad request
> # Content-Type: text/html
> # Content-Length: 193
> #
> # <html>
> # <head>
> # <title>Bad Request</title>
> # </head>
> # <body>
> # <h1>Bad Request</h1>
> #
> # <p>Your browser sent a request which this web server could not
> # grok.</p>
> # </body>
> # </html>
> # '
> # doesn't match '/Congratulations/'
> ok 32 - Signaled 1 process successfully
> ok 33 - Killed PID: 30838
> ok 34 - Killed PID: 30839
> ok 35 - Killed PID: 30840
> ok 36 - Killed PID: 30846
> # Looks like you failed 2 tests of 36.
Ian Jackson <ijackson@chiark.greenend.org.uk> no 2026-09-21

All known versions for source package 'libhttp-server-simple-perl'

Links