Skip Menu |
 

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 9394
Status: rejected
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: 185238 [...] rt.noris.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 1.0704
  • 1.0701
  • 1.0702
  • 1.0703
  • 1.09
  • 1.0901
  • 1.10
  • 1.11
  • 1.12
  • 1.13
  • 1.14
  • 1.15
  • 1.16
  • 1.17
  • 1.18
  • 1.19
Fixed in: (no value)



Subject: Cannot get timeout error message from Net::Cmd
Download (untitled) / with headers
text/plain 979b
Hi, I use Net::SMTP for monitoring e-mail servers. Sometimes, when their load is high, these servers need unusually long for accepting messages, so I get a timeout in Net::Cmd::getline(): 269 if (select($rout=$rin, undef, undef, $timeout)) The problem I have is, that this timeout is not propagated to the calling code, unless when running in debug mode: 288 else 289 { 290 carp("$cmd: Timeout") if($cmd->debug); 291 print STDERR "FANY: $!\n"; 292 return undef; 293 } 294 } (But if I use debug mode, I'll get lots of other annoying messages, will have to set up an ugly $SIG{__WARN__} handler to filter them etc.) Since select() does not treat the timeout as an error (so $! is empty), I have no (good) idea on how to figure out that I've got a timeout (and not any other problem). I consider this a bug and suggest to modify line 290 to an unconditional carp "$cmd: Timeout"; Regards, fany
From: fany [...] cpan.org
Download (untitled) / with headers
text/plain 373b
[me - Tue Jan 4 10:24:56 2005]: Show quoted text
> 288 else > 289 { > 290 carp("$cmd: Timeout") if($cmd->debug); > 291 print STDERR "FANY: $!\n"; > 292 return undef; > 293 } > 294 }
Line 291 is of cours debug code that I had inserted myself; sorry! (This is, however, not really relevant for this bug report.) Regards, fany


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.