1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix for a couple of nasty bugs that could result in clients being incorrectly

dropped under some circumstances. Thanks to Ricardo Galli for finding this.

svn path=/trunk/icecast/; revision=4268
This commit is contained in:
Michael Smith 2003-01-18 12:30:29 +00:00
parent 1fb972cf89
commit 0b57a33794
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ int format_generic_write_buf_to_client(format_plugin_t *format,
ret = sock_write_bytes(client->con->sock, buf, len);
if(ret < 0) {
if(sock_recoverable(ret)) {
if(sock_recoverable(sock_error())) {
DEBUG1("Client had recoverable error %ld", ret);
ret = 0;
}

View File

@ -173,7 +173,7 @@ static int format_mp3_write_buf_to_client(format_plugin_t *self,
}
if(ret < 0) {
if(sock_recoverable(ret)) {
if(sock_recoverable(sock_error())) {
DEBUG1("Client had recoverable error %ld", ret);
ret = 0;
}