Skip Menu |

This queue is for tickets about the Net-Z3950-SimpleServer CPAN distribution.

Report information
The Basics
Id: 70109
Status: new
Priority: 0/
Queue: Net-Z3950-SimpleServer

People
Owner: Nobody in particular
Requestors: bjwebb67 [...] googlemail.com
Cc:
AdminCc:

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



Subject: Test failure on some systems
During testing, the server defaults to listening using only IPv6 if available, but the client uses 'localhost' to find the address, which on some systems resolves to the IPv4 address. The attached patch causes the server to use 'localhost' as the bind address, so the test will complete on such systems.
Subject: test.patch
--- a/test.pl +++ b/test.pl @@ -96,7 +96,7 @@ SEARCH => \&my_search_handler, FETCH => \&my_fetch_handler); - $handler->launch_server("test.pl", "-1", @ARGV); + $handler->launch_server("test.pl", "-1", "tcp:localhost:9999", @ARGV); } else { ## Child starts the client sleep(1); open(CLIENT, "| yaz-client tcp:localhost:9999 > /dev/null")