From e4ef0828b097eb52afc20d3accd675e5a0ab650a Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 6 Jul 2017 22:04:59 -0400 Subject: [PATCH] Ignore SIGPIPE --- httplib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httplib.h b/httplib.h index 69b3d42..18d2d97 100644 --- a/httplib.h +++ b/httplib.h @@ -815,6 +815,9 @@ inline int SocketStream::write(const char* ptr) inline Server::Server() : svr_sock_(-1) { +#ifndef _MSC_VER + signal(SIGPIPE, SIG_IGN); +#endif } inline Server::~Server()