diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-07-20 14:01:58 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-07-20 14:01:58 -0700 |
commit | 5b114791e52c046be3b5db254566928ccc6c7a23 (patch) | |
tree | 7802c250e74f1fe28bc0d24b866364791b74acec /service | |
parent | 9bc11a369ca9ede9649103215fd0d491af4a8077 (diff) | |
download | infinitytier-5b114791e52c046be3b5db254566928ccc6c7a23.tar.gz infinitytier-5b114791e52c046be3b5db254566928ccc6c7a23.zip |
Fix a bug that caused a crash on empty HTTP requests (localhost only) and add a lightweight lock to the RX queue to prevent possible threads stepping on each other in parallel receive paths.
Diffstat (limited to 'service')
-rw-r--r-- | service/OneService.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 91cf49ee..ea336f07 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1063,6 +1063,8 @@ public: else urlArgs[a->substr(0,eqpos)] = a->substr(eqpos + 1); } } + } else { + return 404; } bool isAuth = false; |