Seeing surprising messages in the log file when Zabbix server cannot communicate with passive proxy using TLS (PSK) due to timeouts:
According to OpenSSL documentation SSL_shutdown() can only return 1, 0 or negative values. Looking into this piece of code
revealed that "5" is not coming from SSL_shutdown() at all. Moreover, for some reason error is composed just to be thrown away.