http server unittest + refactoring

This commit is contained in:
Benjamin Sergeant
2019-09-26 09:45:59 -07:00
parent 658650cf24
commit 6762978ddf
5 changed files with 91 additions and 28 deletions

View File

@ -69,6 +69,7 @@ namespace ix
ss << " ";
ss << reason;
ss << "\r\n";
ss << "Server: " << userAgent() << "\r\n";
// Socket write can only be cancelled through a timeout here, not manually.
static std::atomic<bool> requestInitCancellation(false);