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:
parent
1fb972cf89
commit
0b57a33794
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user