SSL_shutdown:shutdown while in init

Hi,

I have the following error report in my logs;

2020-12-19T22:36:56.434Z mediasoup:ERROR:worker[pid:2117] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:36:56.434Z mediasoup:ERROR:worker[pid:2117] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:03.166Z mediasoup:ERROR:worker[pid:2103] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:03.166Z mediasoup:ERROR:worker[pid:2103] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:1413E138:SSL routines:dtls1_check_timeout_num:read timeout expired']
2020-12-19T22:37:04.930Z mediasoup:ERROR:worker[pid:2111] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:13.218Z mediasoup:ERROR:worker[pid:2105] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:13.218Z mediasoup:ERROR:worker[pid:2105] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:25.320Z mediasoup:ERROR:worker[pid:2103] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:33.774Z mediasoup:ERROR:worker[pid:2105] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:43.852Z mediasoup:ERROR:worker[pid:2105] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']
2020-12-19T22:37:52.863Z mediasoup:ERROR:worker[pid:2109] RTC::DtlsTransport::CheckStatus() | OpenSSL error [desc:'SSL status: SSL_ERROR_SSL', error:'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init']

This is happening randomly, continues 2-3 hours a day. Happened for 4-5 times. My app was running for a longer time and there was no problem until recently. I would appreciate any insights. Where should I looking for the cause of this problem?

Look for “SSL_shutdown:shutdown while in init” in Google.

Apparently some kind of DDOS attack was causing the issue. I don’t exactly know the details of why or how it does create this problem but for now we were able to mitigate it.