mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-22 04:15:54 -04:00
Update: Avoid new client waiting on old ones
This commit is contained in:
parent
8a7513a420
commit
e0f5c94de1
@ -107,7 +107,7 @@ typedef struct {
|
||||
#endif
|
||||
} client_queue_t;
|
||||
|
||||
#define QUEUE_READY_TIMEOUT 800
|
||||
#define QUEUE_READY_TIMEOUT 50
|
||||
|
||||
static spin_t _connection_lock; // protects _current_id
|
||||
static volatile connection_id_t _current_id = 0;
|
||||
@ -882,7 +882,7 @@ void connection_accept_loop(void)
|
||||
config_release_config();
|
||||
|
||||
while (global.running == ICECAST_RUNNING) {
|
||||
connection_t *con = listensocket_container_accept(global.listensockets, QUEUE_READY_TIMEOUT);
|
||||
connection_t *con = listensocket_container_accept(global.listensockets, 800);
|
||||
|
||||
if (con) {
|
||||
connection_queue(con);
|
||||
|
Loading…
Reference in New Issue
Block a user