Skip Menu |
 

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

Report information
The Basics
Id: 69571
Status: rejected
Priority: 0/
Queue: Net-Telnet

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

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



Subject: $t->open() should die if already opened
Download (untitled) / with headers
text/plain 431b
"$t->open;" should die if the connection is already opened. Here is a trap where that error should be triggered: my $t = Net::Telnet->new(Host => '127.1'); $t->open; ->new already opened the connection (but this is not documented), and ->open does it again but this is a problem with Telnet servers that support only one connection at a time. -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
Download (untitled) / with headers
text/plain 208b
Changing open() to die when the object is already open will break existing user code. I updated the documentation to indicate open() closes the object before connecting. Thanks for submitting this problem.


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.