Commit Graph
100 Commits
Author SHA1 Message Date
Alex Hultman 7ff9f9b04c Ping every 16 seconds in scale_test 2019-02-19 16:45:14 +01:00
Alex Hultman b2a8ccfa7a Add scale_test to benchmarks 2019-02-19 11:44:59 +01:00
Alex HultmanandGitHub d1f1b646f2 Add gobwas/ws to benchmark results 2019-02-13 09:56:59 +01:00
Alex HultmanandGitHub a74ad8aeb3 Add Deno websocket benchmark results 2019-02-13 03:05:46 +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 399318f866 Disable TopicTree for now 2019-02-10 02:11:11 +01:00
Alex Hultman 3e4e70da20 Make it compile 2019-02-10 01:22:24 +01:00
Alex Hultman a419221a28 Fix up WebSocketContext.h 2019-02-10 01:08:10 +01:00
Alex Hultman f1bdbc968b First pass of overall cleanups 2019-02-10 00:17:13 +01:00
Alex Hultman cfac783cd9 Smaller TopicTree changes 2019-02-09 23:47:34 +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 127d3d6a14 res.tryEnd returns [ok, hasResponded] 2019-02-09 23:31:04 +01:00
Alex Hultman 3a41bb8e34 Fix up WebSocketExtensions.h as proper header 2019-02-09 23:26:08 +01:00
Alex HultmanandGitHub b1b6b94ad5 Link to JavaScript examples 2019-02-09 23:14:15 +01:00
Alex Hultman 3fe7964e74 Properly unsubscribe from everywhere on close 2019-02-09 09:29:29 +01:00
Alex Hultman 6fe717f46a Some changes to pubsub 2019-02-09 08:45:27 +01:00
Alex Hultman f08bc8cd03 Initial pubsub preparatory work 2019-02-09 01:00:17 +01:00
Alex Hultman aaf1f05dcd Move in TopicTree from uTT 2019-02-08 23:23:25 +01:00
Alex HultmanandGitHub e59ae7fd72 Add LICENSE.txt to src/f2 2019-02-06 23:11:26 +01:00
Alex Hultman 0709ec05a6 Even zero is a valid content-length 2019-02-04 00:39:45 +01:00
Alex Hultman 5528e6f5fe Fix Http timeout regarding .end with backpressure 2019-01-31 18:01:19 +01:00
Alex HultmanandGitHub 418b51f007 Add note regarding route order 2019-01-30 11:56:49 +01:00
Alex Hultman eaa9467d1f Don't write mark in the middle of streaming 2019-01-29 17:15:06 +01:00
Alex Hultman 359873f4ea Fix up Http pipelining check 2019-01-29 16:18:08 +01:00
Alex Hultman 7b87460c57 HttpResponseData has to be convertible to AsyncSocketData 2019-01-29 16:11:42 +01:00
Alex Hultman ca38ea1669 Port load_test to SSL/non-SSL uSockets API 2019-01-28 18:20:39 +01:00
Alex Hultman d4e767ac65 Shorten mark footprint 2019-01-26 22:08:41 +01:00
Alex Hultman 4d06180041 Move mark from WebSockets down to HTTP 2019-01-26 21:55:24 +01:00
Alex Hultman 92fb74b7e9 Remove last debug prints 2019-01-26 19:02:29 +01:00
Alex HultmanandGitHub 1eaf69c566 More docs changes 2019-01-26 18:49:33 +01:00
Alex HultmanandGitHub f0352b4685 Add info on open/close guarantee 2019-01-26 18:33:46 +01:00
Alex Hultman 7d990a3bc1 API CHANGE: ws.close -> ws.end, ws.terminate -> ws.close 2019-01-26 17:20:47 +01:00
Alex Hultman ba10536f50 Introduce WebSocket::terminate (todo: rename to close) 2019-01-26 17:13:47 +01:00
Alex Hultman 80322a5af7 Never parse messages while in shutdown 2019-01-26 14:31:37 +01:00
Alex Hultman d331ec3e45 Refactor using new uSockets API 2019-01-25 14:15:40 +01:00
Alex Hultman e14461e253 Fix up websocket writable behavior 2019-01-24 18:01:20 +01:00
Alex Hultman 7bb2dc848d Add simple user manual, add links & update wording 2019-01-24 13:27:35 +01:00
Alex Hultman a0eeb769c9 Carry over backpressure from Http to WS 2019-01-24 11:53:10 +01:00
Alex Hultman e653e9d314 Make HttpParser only handle move-only functions 2019-01-23 12:31:25 +01:00
Alex Hultman 95478c906f Make Loop and LoopData only hold move-only functions 2019-01-23 12:26:33 +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 ce286017ee Make the router use move-only functions 2019-01-23 11:51:38 +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 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 586595e727 Fix up websocket close events 2019-01-22 11:22:22 +01:00
Alex Hultman 0934965fa5 Implement idleTimeout 2019-01-22 10:15:27 +01:00
Alex Hultman 85889153b9 Remove most debug prints 2019-01-22 09:41:48 +01:00
Alex Hultman 87aea5a28c Don't emit multiple parallel requests 2019-01-22 09:28:03 +01:00
Alex Hultman db98f81986 Proper move of App 2019-01-22 09:16:05 +01:00
Alex Hultman 98d329c912 Update uSockets 2019-01-21 19:07:44 +01:00
Alex Hultman 74a4048195 Align LoopData, HttpContextData 2019-01-21 08:40:21 -08: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 3c3819fe3c Implement Loop::setPreHandler 2019-01-17 09:59:55 +01:00
Alex Hultman 04281eeea6 onData as unique_function 2019-01-17 08:21:39 +01:00
Alex Hultman 2a62218d2a Disable onWritable debug prints 2019-01-17 06:51:35 +01:00
Alex Hultman 6718301ac9 Make onAborted unique_function 2019-01-17 06:30:47 +01:00
Alex Hultman 0ca061e772 Being extra clear with move 2019-01-15 08:09:50 +01:00
Alex Hultman 95cafc2c7b Try using function2 for HttpResponse::onWritable 2019-01-15 07:11:30 +01:00
Alex Hultman 8efea340e6 Add zlib to HttpServer build 2019-01-08 20:42:58 +01:00
Alex Hultman d8aeb0d312 Fix "last" onData flag of HttpParser 2019-01-08 06:34:59 +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 4fde553d03 Remove uWS::destroy() 2019-01-07 02:26:50 +01:00
Alex HultmanandGitHub 04437c5f74 Add compiling docs 2019-01-05 01:03:10 +01:00
Alex Hultman 4f3c031c39 Make sure UWS_NO_ZLIB, LIBUS_NO_SSL works 2019-01-05 00:52:45 +01:00
Alex Hultman c953d2b2bb Fix compiling on Windows without SSL 2019-01-05 00:39:46 +01:00
Alex Hultman 287c7dbe7f Add uWS::destroy calls to examples 2018-12-30 21:27:42 +01:00
Alex Hultman b65e9fd7d8 Add uWS::destroy() helper function 2018-12-30 21:19:08 +01:00
Alex Hultman 7afb3af614 Fake succeed all writes on closed socket (fix memory leak) 2018-12-30 21:08:54 +01:00
Alex Hultman cd6ab69140 Fix SSL destructor mistake 2018-12-30 18:12:19 +01:00
Alex Hultman ed7222e513 Fix last obvious leak 2018-12-30 18:02:57 +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 4407beedf7 Make sure to reset upgradedWebSocket each time 2018-12-30 13:56:04 +01:00
Alex Hultman 2c212f2fb4 Fix struct/class mismatch 2018-12-30 13:29:29 +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
Alex Hultman e70eb78ae3 Hook up maxPayloadLength for Zlib too 2018-12-29 13:47:15 +01:00
Alex Hultman 50de2cea89 Hook up maxPayloadLength, not for Zlib 2018-12-29 13:32:49 +01:00
Alex Hultman f5583b4a8a Remove per-platform byte swap, all portable now 2018-12-28 15:47:09 +01:00
Alex Hultman a7597772f8 Separate parser from formatter, make it build 2018-12-28 14:16:28 +01:00
Alex Hultman 59b3fee3fe Emit drain event, add comments, etc 2018-12-28 13:14:57 +01:00
Alex Hultman 44fbd44211 Emit close event for WebSockets 2018-12-28 11:55:28 +01:00
Alex Hultman 73b4fc384d Fix WebSocketContext::create sizeof bug 2018-12-28 10:59:51 +01:00
Alex Hultman 1e5bb25d5c Minor main.cpp changes 2018-12-26 20:42:36 +01:00
Alex Hultman 9c037747ab Silence various unused- warnings 2018-12-26 20:41:18 +01:00
Alex Hultman 46537f6f2d Update uSockets 2018-12-26 19:18:42 +01:00
Alex Hultman c0af883bf9 Pull new uSockets with SSL fixes 2018-12-26 14:47:18 +01:00
Alex Hultman de53d12bfe Fix up getUserData 2018-12-26 14:35:09 +01:00
Alex Hultman fb95abad71 Update EchoServer example 2018-12-22 06:02:38 +01:00
Alex Hultman 038111fb98 Add SHARED and DEDICATED compressor options 2018-12-22 05:58:26 +01:00
Alex Hultman f8e299c312 Add initial send compression 2018-12-22 03:08:12 +01:00
Alex HultmanandGitHub a54aa23329 Remove ugly warning 2018-12-21 05:58:13 +01:00
Alex Hultman 3fa0fbc5fa Add a few more events 2018-12-21 04:31:37 +01:00