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()