From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 5 Sep 2021 09:12:41 +0000 (+0100) Subject: To address Issue 1107, set the number of items to buffer to 255. Thanks to https... X-Git-Tag: 4.1-dev~4^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd795d9157ca4f651265ab5c7e1f211579564f7d;p=thirdparty%2Fshairport-sync.git To address Issue 1107, set the number of items to buffer to 255. Thanks to https://github.com/PieGuy314 and https://github.com/Hello71 for reporting. --- diff --git a/rtsp.c b/rtsp.c index f0a1c495..3ef385da 100644 --- 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;