Commit Graph
87 Commits
Author SHA1 Message Date
Alex Hultman aac11b07fb Add getNativeHandle functions 2020-06-20 23:36:27 +02:00
Alex Hultman 9e3a75b19a Clean-ups 2020-06-04 13:19:25 +02:00
Alex Hultman 625efbc499 Don't pass req in open handler 2020-06-02 12:59:36 +02:00
Alex Hultman 6735bad79c Pass UserData when upgrading 2020-06-02 12:55:05 +02:00
Alex Hultman cb48712b3d Make it stick together just barely 2020-06-02 12:40:51 +02:00
Alex Hultman a8539e7463 Move most upgrading into HttpResponse 2020-06-02 10:08:31 +02:00
Alex Hultman 4be90c0114 Add upgrade handler 2020-06-01 15:45:03 +02:00
Alex Hultman 19db2093e5 Gracefully fail to listen if SSL cert/key was missing 2020-04-03 21:31:31 +02:00
Alex Hultman 3a856b610b Add memory limited dedicated compressors 2020-02-29 04:06:27 +01:00
Alex Hultman 591518b2d0 Ping/pong ahoy 2020-02-29 00:18:25 +01:00
Alex Hultman 588d234d45 Allow having no open handler 2020-01-19 19:57:25 +01:00
Alex Hultman 0faebc7590 Allow having no close handler 2020-01-19 19:46:51 +01:00
Alex Hultman f4bb87a098 Add WebSocket::cork 2019-12-28 22:47:15 +01:00
Alex Hultman 6d1a6ba1bd Make it compile, lowercase methods 2019-12-26 01:03:50 +01:00
Alex Hultman d3b43e3fa1 First stab at new router 2019-12-26 00:32:02 +01:00
Alex Hultman 5ab190f430 Breaking: construct/destruct WebSocket UserData 2019-12-22 00:00:37 +01:00
Alex Hultman 49f460ef20 Add app.publish 2019-10-17 02:09:48 +02:00
Alex Hultman 2880745629 Add basic maxBackpressure for pubsub 2019-10-09 01:20:34 +02:00
Alex Hultman 62c4253ed3 Add subprotocol response 2019-10-08 23:10:58 +02:00
Alex Hultman c102034870 Add MockedEchoServer fuzz target, fix App capture of moving this 2019-06-16 12:53:19 +02:00
Alex Hultman 2714ffe8d6 Upgrade to uSockets 0.2.0a1 (experimental) 2019-06-11 19:16:46 +02:00
Alex Hultman 996703dde6 Make everything struct, never use class 2019-06-09 08:07:51 +02:00
Alex Hultman 762b18459e Refactor a bit, put everything in uWS namespace 2019-06-09 07:53:43 +02:00
Alex Hultman ba5f656041 Don't pass zero length host as host, update uS 2019-04-17 22:07:55 +02:00
Mike SeeseandAlex Hultman caeaade092 Add functions to accept listening options (#879) 2019-04-17 20:38:25 +02:00
Alex Hultman 5dd1932f5f Salvage fallback buffer from burning house 2019-04-03 03:30:21 +02:00
Alex HultmanandGitHub 1680046963 Fix upgrade handshake 2019-03-10 05:14:16 +01:00
Alex Hultman b1de3a5135 Refactor Loop::defaultLoop() to Loop::get(), never use "default loops". 2019-03-02 03:04:07 +01:00
Alex Hultman 2afe6a6efb Only set sec-websocket-extensions if we have an offer 2019-03-01 15:43:20 +01:00
Alex Hultman b6173d68b4 Expose constructorFailed 2019-02-10 12:37:56 +01:00
Alex Hultman 02f20bf030 Add listen(host, port, callback) 2019-02-10 11:18:53 +01:00
Alex Hultman b5939da595 Refuse to compile if alignment of user data cannot be satisfied 2019-02-09 23:39:52 +01:00
Alex Hultman 0709ec05a6 Even zero is a valid content-length 2019-02-04 00:39:45 +01:00
Alex Hultman 4d06180041 Move mark from WebSockets down to HTTP 2019-01-26 21:55:24 +01:00
Alex Hultman d331ec3e45 Refactor using new uSockets API 2019-01-25 14:15:40 +01:00
Alex Hultman a0eeb769c9 Carry over backpressure from Http to WS 2019-01-24 11:53:10 +01:00
Alex Hultman 91925ccc37 Make all websocket handlers move-only 2019-01-23 12:19:44 +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 f4065b4e3b Add simple "any" route to catch any method 2019-01-22 13:55:28 +01:00
Alex Hultman 6d469cd8ba Add some important comments of bugs in adoption 2019-01-22 13:23:40 +01:00
Alex Hultman 0934965fa5 Implement idleTimeout 2019-01-22 10:15:27 +01:00
Alex Hultman db98f81986 Proper move of App 2019-01-22 09:16:05 +01:00
Alex Hultman 2caefa9d96 We need HttpResponse::hasResponded 2019-01-18 16:36:24 +01:00
Alex Hultman 614d02e462 Not my problem 2019-01-07 11:30:57 +01:00
Alex Hultman c953d2b2bb Fix compiling on Windows without SSL 2019-01-05 00:39:46 +01:00
Alex Hultman 339e2d72dc Fix more memory leaks 2018-12-30 17:43:11 +01:00
Alex Hultman 6618f7194b Fix a few memory leaks 2018-12-30 17:17:22 +01:00
Alex Hultman d597041ca4 Don't leave content-length on empty response 2018-12-29 14:27:50 +01:00
Alex Hultman 6befbd4a37 Allow UWS_NO_ZLIB to work properly 2018-12-29 14:00:26 +01:00