From 39c5021b7c6200e8eca6d2bbfec13163317c2ec2 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Thu, 9 Jun 2005 13:29:11 +0000 Subject: [PATCH] don't be too quick when dealing with files. allow the limited per-client loop but don't trigger a small poll timeout svn path=/icecast/trunk/icecast/; revision=9418 --- src/source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/source.c b/src/source.c index 1e107c41..a5926ee5 100644 --- a/src/source.c +++ b/src/source.c @@ -499,7 +499,8 @@ static void send_to_listener (source_t *source, client_t *client, int deletion_e sleep for too long if more data can be sent */ if (total_written > 20000 || loop == 0) { - source->short_delay = 1; + if (client->check_buffer != format_check_file_buffer) + source->short_delay = 1; break; }