mludvig / smtp-cli

The ultimate command line SMTP client
http://smtp-cli.logix.cz
188 stars 32 forks source link

socket timeout fails on older versions of IO::Socket::SSL #6

Closed ewolk closed 9 years ago

ewolk commented 9 years ago

i need to remove the timeout to get this to work on a Nokia N9. IO::Socket 1.33 {libio-socket-ssl-perl_1.33-1+squeeze1_all.deb} Net::SSLeay 1.36 {libnet-ssleay-perl_1.36-1_armel.deb}

a good workaround, i think, would be to add a CLI option to remove the Timeout => 5 from the socket {--no-socket-timeout}. what do you think of this approach?

without removing the timeout, i get this: SSL/TLS: SSL connect attempt failed with unknown error error:00000000:lib(0):func(0):reason(0)

with the timeout removed from the script, it works like a charm. note that the errors happen instantly, for whatever reason, not after 5 seconds, and with the timeout removed, the socket connects in a few milliseconds.

ewolk commented 9 years ago

{sry, wrong github account}