mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[misc] Prevent OwnTone from hanging when a connection can't be made
This change adds a default 3s timeout to net_connect(). Fixes #1916
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#define NET_CONNECT_TIMEOUT_MS 3000
|
||||
|
||||
union net_sockaddr
|
||||
{
|
||||
struct sockaddr_in sin;
|
||||
|
||||
Reference in New Issue
Block a user