|There's more than one way to do things|
IO::Socket::SSL sometimes says 'SSL wants a read first'by FloydATC (Deacon)
|on Apr 20, 2017 at 07:03 UTC||Need Help??|
FloydATC has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to write an SSL proxy using IO::Socket::SSL::Intercept in order to do DNS based inspection of traffic to a specific host, and it's mostly working except I'm seeing strange intermittent failures when trying to connect to the real SSL server on behalf of the client. Here is the relevant code:
And here is a typical result. Sometimes it will work the first time, sometimes it has to retry a few times:
I'm not seeing this against all hosts, which leads me to believe that there may be something strange going on at the far end, but I'd rather have some input from people who have done this sort of thing before I start pointing fingers.
Interestingly, IO::Socket::SSL debugging seems to indicate it is 'ignoring' this as a 'less severe local error' but in fact the connection fails:
Any thoughts on how to fix this?
I got 99 problems, most of them have to do with printers.