Skip Menu |

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

Report information
The Basics
Id: 46690
Status: resolved
Priority: 0/
Queue: Net-UCP

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

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



Subject: $error_code in transmit_msg
In case of "strange" errors in transmit_msg() (like a timeouted connection) the returned $error_code value will be 0. This is the same error code like in successful operation, so it's difficult to distinguish success and error (maybe it's possible to distinguish using the other returned values $ack and $error_text). In fact, in Net::UCP::Client::login() you're using the condition return 0 if ($e_num) to get a unsuccessful login(), but this would not catch timeouted connections. Regards, Slaven