From: Mike Brady Date: Tue, 8 Jan 2019 13:00:00 +0000 (+0000) Subject: INcrease the delay between reading chunks of the RTSP message, may it less likely... X-Git-Tag: 3.3RC0~66^2~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3668b3fc023b5d8f8026dbe5f067a784e9b366c;p=thirdparty%2Fshairport-sync.git INcrease the delay between reading chunks of the RTSP message, may it less likely to overwhelm the CPU. --- diff --git a/rtsp.c b/rtsp.c index 74d1c54f..a90c5aa0 100644 --- a/rtsp.c +++ b/rtsp.c @@ -674,7 +674,7 @@ do { size_t read_chunk = msg_size - inbuf; if (read_chunk > max_read_chunk) read_chunk = max_read_chunk; - usleep(40000); // wait about 40 milliseconds between reads of up to about 64 kB + usleep(80000); // wait about 80 milliseconds between reads of up to about 64 kB nread = read(conn->fd, buf + inbuf, read_chunk); if (!nread) { reply = rtsp_read_request_response_error;