Skip to content

ProtocolError: SSL_shutdown:shutdown while in init

Hi,

I'm getting the following errors a few times a week:

ProtocolError "error:140E0197:SSL routines:SSL_shutdown:shutdown while in init"

I originally opened an issue on the HsOpenSSL repo, but the maintainers are thinking the problem might be here.

Apparently this might happen when calling shutdown before a handshake has been established.

I skimmed through the Socket.hs module and I'm not seeing anything obvious, any idea how that might happen ?

For context, I'm using the default retry settings to connect to a Keyspaces instance on AWS.