Commit Graph
59 Commits
Author SHA1 Message Date
Alex Hultman df7c4bb9f8 Add option sendPingsAutomatically 2021-01-31 12:53:17 +00:00
ronen37andGitHub d7d2c22750 Fix checking if we actively drain backpressure (#1179)
in WebSocketContext::us_socket_context_on_writable()
2021-01-26 12:40:36 +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 21cb4846df Use std::optional in permessage-deflate 2020-10-23 02:16:49 +02:00
Alex Hultman f2198ccfac Fix >2gb streamed HTTP responses 2020-07-29 08:41:53 +02:00
Alex Hultman 3e5d91418a Emit 1006 with some usable reason messages 2020-06-27 01:49:51 +02: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 fd2d36328d Never drain a closing socket from unsubscribeAll 2020-06-10 22:25:45 +02:00
Alex Hultman 025415d1a0 Clean-ups, bump copyright date 2020-06-08 13:31:06 +02:00
Alex HultmanandGitHub 11aafd32f5 Always emit drain event in case of having no backpressure 2020-05-07 08:10:57 +02:00
Alex Hultman 22d661609a Zero-length inflations are peculiar, yet valid 2020-04-03 20:46:20 +02:00
Alex Hultman 95f173bff8 Reintroduce ping/pong handlers 2020-02-29 00:05:00 +01:00
Alex Hultman 54dd866a84 Fragments forming a long message are not caught early 2019-12-31 12:56:45 +01:00
Alex Hultman f274d63dca Fix all -Wconversion warnings 2019-12-28 21:44:54 +01:00
Alex Hultman f58a9e1e0d Pass autobahn with pub/sub 2019-10-08 03:55:27 +02:00
Alex Hultman 6c7844d65f Fix up unsubscribeAll 2019-10-07 11:58:02 +02:00
Alex Hultman d09f25850b Hook up new pubsub 2019-10-07 10:57:04 +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 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 3fe7964e74 Properly unsubscribe from everywhere on close 2019-02-09 09:29:29 +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 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 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 614d02e462 Not my problem 2019-01-07 11:30:57 +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 2c212f2fb4 Fix struct/class mismatch 2018-12-30 13:29:29 +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 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 038111fb98 Add SHARED and DEDICATED compressor options 2018-12-22 05:58:26 +01:00
Alex Hultman 3fa0fbc5fa Add a few more events 2018-12-21 04:31:37 +01:00
Alex Hultman 4a2cd93a22 Pass Autobahn with restored WS perf. 2018-12-21 03:18:34 +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 9d0e4f4771 Pass entire Autobahn over SSL 2018-11-29 20:57:31 +01:00
Alex Hultman 3e769fb841 Pass a big portion of Autobahn over SSL 2018-11-29 09:59:03 +01:00