TLS connections not shutting down correctly (blocking mode)
shout_tls_close() does not check the return value of SSL_shutdown() to complete a bidirectional shutdown. As a result the TLS connection to Icecast remains open when using libshout in blocking mode. As a result, ezstream users are unable to terminate and restart their streams (Icecast prevents multiple source connections to the same mountpoint). See ezstream#2269 for reference.
A naive patch that solves the issue is attached as SSL_shutdown.diff, but that won't work in non-blocking mode ...