From c071f643762feb8c1fb06140ab95b93aac22e4e3 Mon Sep 17 00:00:00 2001 From: ipknHama Date: Sun, 17 Sep 2017 14:10:15 +0900 Subject: [PATCH] Delete new connection with error while accepting (kwangsei, PR #205) --- include/crow/http_server.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/crow/http_server.h b/include/crow/http_server.h index a247b128b..7e4da5603 100644 --- a/include/crow/http_server.h +++ b/include/crow/http_server.h @@ -200,6 +200,10 @@ namespace crow p->start(); }); } + else + { + delete p; + } do_accept(); }); }