From 403c5ff5f425a11a71fecd85fef2611cef6d2cfe Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 30 Sep 2017 14:27:32 +0200 Subject: DPD server: handle accept timeout correctly --- src/OutputUHDFeedback.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OutputUHDFeedback.cpp b/src/OutputUHDFeedback.cpp index 056be29..cfb74b7 100644 --- a/src/OutputUHDFeedback.cpp +++ b/src/OutputUHDFeedback.cpp @@ -198,7 +198,8 @@ void OutputUHDFeedback::ServeFeedback() TCPSocket client_sock = m_server_sock.accept_with_timeout(1000, &client); if (not client_sock.valid()) { - throw runtime_error("Could not establish new connection"); + // No connection request received + continue; } uint8_t request_version = 0; -- cgit v1.2.3