Add timeouts, make SSL paths identical to non-SSL

This commit is contained in:
Alex Hultman
2018-07-03 18:11:24 +02:00
parent a3dd3ef958
commit 20f0a2debe
4 changed files with 23 additions and 40 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ void respond(T *s) {
}, SIZE);
}
//#define USE_SSL
#define USE_SSL
int main(int argc, char **argv) {
@@ -57,7 +57,7 @@ int main(int argc, char **argv) {
std::cout << "Connections: " << ++connections << std::endl;
}).onHttpDisconnection([](auto *s) {
std::cout << "Connections: " << --connections << std::endl;
}).listen("localhost", 3000, 0);
}).listen(nullptr, 3000, 0);
uWS::run();
// loop.run();