]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
To address Issue 1107, set the number of items to buffer to 255. Thanks to https...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 5 Sep 2021 09:12:41 +0000 (10:12 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 5 Sep 2021 09:12:41 +0000 (10:12 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index f0a1c4959452bce8eea62074227f27eaab9963be..3ef385da9d9bd6e030a280ce7b127fa3f71bdf23 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -2792,7 +2792,7 @@ void handle_setup_2(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp)
     plist_to_bin(setupResponsePlist, &resp->content, &resp->contentlength);
     plist_free(setupResponsePlist);
     msg_add_header(resp, "Content-Type", "application/x-apple-binary-plist");
-    config.airplay_statusflags |= 1 << 11; // DeviceSupportsRelay
+    // config.airplay_statusflags |= 1 << 11; // DeviceSupportsRelay
     build_bonjour_strings(conn);
     debug(1, "Connection %d: SETUP mdns_update.", conn->connection_number);
     mdns_update(NULL, secondary_txt_records);
@@ -4737,7 +4737,7 @@ void *rtsp_listen_loop(__attribute((unused)) void *arg) {
         debug(1, "unable to listen on %s port %d. The error is: \"%s\".", family, config.port,
               strerror(errno));
       } else {
-        listen(fd, 5);
+        listen(fd, 255);
         nsock++;
         sockfd = realloc(sockfd, (nsock + 1) * sizeof(int));
         sockfd[nsock] = fd;