]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
INcrease the delay between reading chunks of the RTSP message, may it less likely...
authorMike Brady <mikebrady@eircom.net>
Tue, 8 Jan 2019 13:00:00 +0000 (13:00 +0000)
committerMike Brady <mikebrady@eircom.net>
Tue, 8 Jan 2019 13:00:00 +0000 (13:00 +0000)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index 74d1c54fb0a99b0972fbba13704fb2fece81bb1a..a90c5aa0684d00ea797cf5ebd1b2ccf7045c6e4f 100644 (file)
--- 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;