Skip Menu |

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

Report information
The Basics
Id: 29198
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: bernt.budde [...] gmail.com
Cc:
AdminCc:

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



Subject: Trivial problem with example program in Net::Server
Date: Thu, 6 Sep 2007 06:56:54 +0200
To: bug-Net-Server [...] rt.cpan.org
From: "Bernt Budde" <bernt.budde [...] gmail.com>
Hello! This is a small problem in a test script, so bug is a too big a word. :-) The 'samplechat.pl' resets timeouts by using: $mux->set_timeout($fh, 40); It seems that you need to cancel a previous timeout before setting a new: $mux->set_timeout($fh, undef); You notice this when samplechat.pl has upgraded you to "senior". Then it doesn't matter if you write anything -- you are thrown out anyway after 40 seconds. Canceling the timeout before setting it in &mux_input solves the problem. This might come from IO::Multiplex and not in the example script? (Doesn't look like it from the IO:M docs and there seems to be no Change for this.) Also, I must say Net::Server and IO::Multiplex looks really nice! This was one of the times when you get a tear in the eye from just reading the API and thinking of how to use it. Elegant. (I use the Ubuntu default install. I checked and it was the same in the latest version of samplechat.pl on cpan.) Thank you, /Bernt Budde Phone +46 739-239 257
Thankyou for the report. The code is updated as of the just released version 2.000