Net-SMPP - bind_tranciever - Exception instead of error

Posted on Sun Sep 23 13:24:29 2007 by liphtier
bind_tranciever - Exception instead of error
Hello!

When binding to SMSC (I think in any mode) if the connection attempt failed there's a perl exception thrown :

Can't call method "bind_transceiver" on an undefined value at /usr/lib/perl5/site_perl/5.8.7/Net/SM +PP.pm line 2185.
(line 2185 in Net::SMPP v1.11)

I think it is not desirable behaviour. It is better if the new_transceiver() method will return some error code or at least undef, so that the application could handle it (i.e. retry bind attempt).

I think it is a bug, but it was there in all versions and many people have encountered this exception and no one complained. So may be they somehow have worked around it.
So if anyone have, please let me know, or nevertheless it should be submitted to buglist ?

Kind regards
Direct Responses: 7300 | Write a response