Commit Graph
62 Commits
Author SHA1 Message Date
Alex Hultman ad1d6fac08 Fix -Wunused-parameter 2020-12-01 01:10:00 +01:00
Alex Hultman ad0a961430 Experimental: Fix all signed/unsigned warnings 2020-11-30 23:00:36 +01:00
Alex Hultman 10bbfaa22f Use uSockets v0.5.0 2020-06-26 22:12:33 +02:00
Alex Hultman 2ff50630e9 Send TCP FIN from HttpContext if WebSocket FIN sent 2020-06-26 06:08:41 +02:00
Alex Hultman 025415d1a0 Clean-ups, bump copyright date 2020-06-08 13:31:06 +02:00
Alex Hultman 2538cd18e9 Add WITH_PROXY flag 2020-06-06 12:59:40 +02:00
Alex Hultman 9e3a75b19a Clean-ups 2020-06-04 13:19:25 +02:00
Alex Hultman e4f81e16ea Don't set upgradedWebSocket outside the Http parser 2020-06-03 07:56:33 +02:00
Alex Hultman cb48712b3d Make it stick together just barely 2020-06-02 12:40:51 +02:00
Alex Hultman c7ac8c7e56 Store headers in bloom filter, respond to 100-continue 2020-04-06 02:48:11 +02:00
Alex HultmanandGitHub 02b2af5f24 Always uncork after Http parse 2020-01-01 22:46:03 +01:00
Alex HultmanandGitHub b9062ec770 Fix HttpContext 2019-12-29 22:51:10 +01:00
Alex Hultman 3fb870ac55 Clean-up and fix HttpResponse::cork behavior 2019-12-26 17:17:33 +01:00
Alex Hultman bdac60a177 Fix a few warnings 2019-12-26 16:45:23 +01:00
Alex Hultman d3b43e3fa1 First stab at new router 2019-12-26 00:32:02 +01:00
Alex HultmanandGitHub f358601505 Fix Http timeout of posted data 2019-11-18 22:08:06 +01:00
Alex HultmanandGitHub 911e16efb8 Reset onData handler once we get the fin chunk 2019-08-17 00:00:39 +02:00
Alex Hultman 2714ffe8d6 Upgrade to uSockets 0.2.0a1 (experimental) 2019-06-11 19:16:46 +02:00
Alex Hultman 5098ec279f Compile uSocketsMock as C 2019-06-10 01:19:18 +02:00
Alex Hultman 762b18459e Refactor a bit, put everything in uWS namespace 2019-06-09 07:53:43 +02:00
Alex Hultman b36607dac6 Guarantee to end http parsing after websocket upgrade 2019-04-04 00:21:27 +02:00
Alex Hultman 495ccfc076 Update uS, add AsyncSocket::getRemoteAddress() 2019-03-03 07:40:44 +01:00
Alex Hultman 4db0cd5527 What about making it compile 2019-02-21 14:05:15 +01:00
Alex Hultman 73ddb42a9e Timeout clients sending http body data too slow 2019-02-21 13:59:42 +01:00
Alex Hultman 588d6558e7 Emit isLast onData cb if we have no data 2019-02-21 13:51:40 +01:00
Alex Hultman f1bdbc968b First pass of overall cleanups 2019-02-10 00:17:13 +01:00
Alex Hultman 5528e6f5fe Fix Http timeout regarding .end with backpressure 2019-01-31 18:01:19 +01:00
Alex Hultman 359873f4ea Fix up Http pipelining check 2019-01-29 16:18:08 +01:00
Alex Hultman d331ec3e45 Refactor using new uSockets API 2019-01-25 14:15:40 +01:00
Alex Hultman 02a6271980 Make all http routes move-only 2019-01-23 12:09:19 +01:00
Alex Hultman 9829f7fb37 Add concept of route yielding 2019-01-22 18:30:25 +01:00
Alex Hultman ed4e9f5c45 Experimental new router 2019-01-22 18:06:25 +01:00
Alex Hultman 87aea5a28c Don't emit multiple parallel requests 2019-01-22 09:28:03 +01:00
Alex Hultman 19aa6ec9af Implement hasResponded 2019-01-18 17:20:21 +01:00
Alex Hultman 2caefa9d96 We need HttpResponse::hasResponded 2019-01-18 16:36:24 +01:00
Alex Hultman 2a62218d2a Disable onWritable debug prints 2019-01-17 06:51:35 +01:00
Alex Hultman 614d02e462 Not my problem 2019-01-07 11:30:57 +01:00
Alex Hultman e2b2168384 Remove dead code and comments 2019-01-07 03:22:04 +01:00
Alex Hultman 47467ab1e5 Pass "last" bool to res->onData 2019-01-07 03:05:19 +01:00
Alex Hultman 4407beedf7 Make sure to reset upgradedWebSocket each time 2018-12-30 13:56:04 +01:00
Alex Hultman d597041ca4 Don't leave content-length on empty response 2018-12-29 14:27:50 +01:00
Alex Hultman 7c3585afee Use us_socket_is_closed, fix non-SSL/Windows build 2018-12-19 09:22:05 +01:00
Alex Hultman 1613c5020d Initial WebSocket hook up 2018-10-29 23:06:32 +01:00
Alex Hultman ab6abaf2e6 Apache License 2.0 2018-10-29 00:13:52 +01:00
Alex Hultman 4059dd644c Abort logic fixes 2018-10-28 02:08:01 +01:00
Alex Hultman 99d73a9d65 Timeout and drainage logic 2018-10-28 02:47:56 +02:00
Alex Hultman 8cfda9f4b0 Handle socket closing, shutdown, error & (upgrade) in HTTP handlers 2018-10-17 22:23:25 +02:00
Alex Hultman 8105c65fa6 Add all HTTP methods 2018-10-16 23:55:25 +02:00
Alex Hultman bb77fac1fc Add some benchmarking comments 2018-10-16 23:16:46 +02:00
Alex Hultman 5e5d0de0e9 Hook up req->getParameter 2018-10-05 00:10:43 +02:00