Skip Menu |

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

Report information
The Basics
Id: 81325
Status: new
Priority: 0/
Queue: Net-Server

Owner: Nobody in particular
Requestors: joni.salonen [...]

Bug Information
Severity: Important
Broken in: 2.006
Fixed in: (no value)

Subject: Unable to process requests using Net::Server::INET::Handle
Download (untitled) / with headers
text/plain 734b
I'm unable to use Net::Server::INET to add inetd-functionality to an existing application because the IO Handle cannot be read from. Minimal code to illustrate the issue follows. Expected output: The program should copy stdin into stdout. Actual output: Warning "readline() on unopened filehandle HAND at line 12." and the execution ends. ----------------------------------- use warnings; use strict; package MyServer; use parent 'Net::Server::INET'; sub process_request { my ($self) = @_; my $sock = $self->{server}{client}; while (<$sock>) { print $sock $_; } } package main; my $server = MyServer->new(); $server->run(); ------------------------------ (perl 5.14.2, Linux 3.5.0 x86_64)

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

Please report any issues with to