Commit 765ceabe authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: Detect socket errors on TLS based source connections

parent 7bc74729
......@@ -508,6 +508,10 @@ static refbuf_t *get_next_buffer (source_t *source)
source->last_read = current;
refbuf = source->format->get_buffer (source);
if (source->client->con->ssl && (SSL_get_shutdown(source->client->con->ssl) & SSL_RECEIVED_SHUTDOWN))
source->client->con->error = 1;
if (source->client->con && source->client->con->error)
ICECAST_LOG_INFO("End of Stream %s", source->mount);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment