Started having some strange behavior today.
My ruby deploy script (via mina) was crashing on irc notifications.
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: unknown protocol
Later in the day, a few of our client software scripts could only connect 2-at-a-time (when one would drop, a third would join in its place). When I dug into the guts of it, the python error message was:
SSLError: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Hmm. Two different systems, two different languages. Now I'm suspecting the network.
Sure enough, when I joined through my phone hotspot, the script on my laptop connected without issue. Turns out there's some kind of max SSL streams limit on our router. We have about 15 people on IRC at the same time, and that's apparently enough to cause some kind of a limit. It's likely that the "unknown protocol" is an error message getting interrupted via the firewall/proxy.
Hopefully this helps someone out. Had nothing to do with mina, ruby, python, openssl, server, or client. Instead, it was a network issue.