diff options
author | ipknHama <ipknhama@gmail.com> | 2017-09-17 14:10:15 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2017-09-17 14:13:33 +0900 |
commit | c071f643762feb8c1fb06140ab95b93aac22e4e3 (patch) | |
tree | 980b9f58d9c91ff049cd931ec8eefe3bf52d4351 /include | |
parent | f0cb83df8808debab8dfcc5b53784385bc40b3ef (diff) | |
download | crow-c071f643762feb8c1fb06140ab95b93aac22e4e3.tar.gz crow-c071f643762feb8c1fb06140ab95b93aac22e4e3.zip |
Delete new connection with error while accepting (kwangsei, PR #205)
Diffstat (limited to 'include')
-rw-r--r-- | include/crow/http_server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crow/http_server.h b/include/crow/http_server.h index a247b12..7e4da56 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(); }); } |