Commit Graph
79 Commits
Author SHA1 Message Date
b898000e89 Feature / Adopt externally accepted sockets into uWebSockets. (#1697)
* Adopt externally accepted sockets into uWebSockets.

* Integrate uSockets typo.

---------

Co-authored-by: markus <[email protected]>
2024-01-22 07:31:28 +01:00
Alex Hultman cbbcee0df8 Add getParameter(name), ParameterRoutes example 2023-12-27 20:26:24 +01:00
Alex Hultman 53e835c1fa 404 page should not be an error, but a full default response 2023-12-19 04:38:23 +01:00
Alex Hultman 97e8099bc2 Make "*" method actually catch all methods, tweak priority order a bit 2023-12-19 03:18:44 +01:00
Alex Hultman bd1c41a06b Add default 404 error page 2023-07-15 19:39:23 +02:00
Alex Hultman 919a3bbeba Add http errors 2023-05-28 10:12:50 +02:00
Alex Hultman 2b850f76d3 Case sensitive method, trim trailing whitespace (correctly), host header may be empty 2022-10-31 03:47:08 +01:00
Alex Hultman c1fd0e4050 Be strict with content-length, use fullptr as error 2022-10-23 01:42:32 +02:00
Alex Hultman 66cd7c6b9b Removable http routes 2022-10-06 05:47:06 +02:00
Young-FlashandGitHub 88a3e9aa0e add unix domain socket support for websocket (#1486) 2022-09-26 15:45:04 +02:00
Alex Hultman b1b931edfc Add per-SNI HttpRouter support (initial) 2022-09-26 00:22:30 +02:00
Alex Hultman c77cae4635 Require 16kb/sec HTTP upload throughput or drop the uploader 2022-09-25 15:48:00 +02:00
Alex Hultman e4c6fbf8de Fix onWritable calling markDone resulting in potential heap-use-after-free 2022-05-02 01:38:11 +02:00
Alex Hultman c7805e2e48 Remove uWS namespace specifier 2021-02-20 23:50:50 +01:00
Alex Hultman acbe52518f Remove f2, add ofats::any_invocable 2021-02-19 07:09:55 +01:00
Alex Hultman 83adf40583 Add closeConnection to HttpResponse::end, FIN & close 2021-01-25 13:20:55 +01:00
Alex Hultman 3347bcc4b2 Questionable: support ancient Http and connection: close 2021-01-11 13:13:06 +01:00
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