Subject: | Should always restore blocking mode |
When IO::Socket::IP connects with timeout it sets socket to non-blocking mode. But on some type of errors it will not return it to previous mode: https://metacpan.org/source/PEVANS/IO-Socket-IP-0.37/lib/IO/Socket/IP.pm#L688
Let's imagine we have host with several ip addresses and some unknown error will occure. So for next address connection will be made as socket was set non-blocking by user. But user expects blocking socket. This will produce some kind of errors.
Please fix this.