diff options
| -rw-r--r-- | src/Socket.h | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/Socket.h b/src/Socket.h index 1d9c252..f6a023d 100644 --- a/src/Socket.h +++ b/src/Socket.h @@ -137,7 +137,8 @@ class TCPSocket {          {              uint8_t *buf = (uint8_t*)buffer;              while (buflen > 0) { -                ssize_t sent = send(m_sock, buf, buflen, 0); +                // Set MSG_NOSIGNAL to avoid that this thread gets a SIGPIPE +                ssize_t sent = send(m_sock, buf, buflen, MSG_NOSIGNAL);                  if (sent < 0) {                      return -1;                  } | 
