Revert "Revert "io.sockets.secure.openssl: undo some error handling that makes factorcode hang""
Revert "Revert "io.sockets.secure.openssl: undo some error handling that makes factorcode hang""

This reverts commit 7a5d1f477e0c422db0cf16cd0501d604238d7f1a.

mrjbq7/factor,factor/factor,factor/factor,tgunr/factor,factor/factor,tgunr/factor,mrjbq7/factor,factor/factor,factor/factor,tgunr/factor,factor/factor,mrjbq7/factor,tgunr/factor,mrjbq7/factor,tgunr/factor,tgunr/factor,mrjbq7/factor,mrjbq7/factor