summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-07-20 14:01:58 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-07-20 14:01:58 -0700
commit5b114791e52c046be3b5db254566928ccc6c7a23 (patch)
tree7802c250e74f1fe28bc0d24b866364791b74acec /service
parent9bc11a369ca9ede9649103215fd0d491af4a8077 (diff)
downloadinfinitytier-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.cpp2
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;