mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: Shut down TLS before closing socket.
We should first shut down TLS so we can signal the other end a clean shutdown in contrast to a socket failure. Big thanks to wget(1) to find it. Fantastic tool.
This commit is contained in:
parent
0fe5d5fa1f
commit
42b24d1840
@ -1496,10 +1496,10 @@ void connection_close(connection_t *con)
|
||||
if (!con)
|
||||
return;
|
||||
|
||||
tls_unref(con->tls);
|
||||
if (con->sock != -1) /* TODO: do not use magic */
|
||||
sock_close(con->sock);
|
||||
if (con->ip)
|
||||
free(con->ip);
|
||||
tls_unref(con->tls);
|
||||
free(con);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user