Commit Graph
115 Commits
Author SHA1 Message Date
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 de53d12bfe Fix up getUserData 2018-12-26 14:35:09 +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 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 3e75936387 Begin restoring WebSocket performance 2018-12-21 02:13:44 +01:00
Alex Hultman 6a77942066 Make WebSockets work on Windows 2018-12-19 09:38:01 +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
Alex Hultman 6c9ac88f50 Add basic permessage-deflate, pass entire Autobahn 2018-11-29 08:37:31 +01:00
Alex Hultman a25e2ab397 A bit of clean-ups and license fixes 2018-11-22 01:29:28 +01:00
Alex Hultman fb70cf78e1 New interface a la designated initializers 2018-11-22 00:20:38 +01:00
Alex Hultman 519c1f5b60 Some clean-ups 2018-11-21 23:19:20 +01:00
Alex Hultman 91620c6c42 (Just barely) pass Autobahn tests chapter 1 - 10 2018-11-21 22:46:17 +01:00
Alex Hultman 8bf87c9147 Don't crash on Autobahn testing 2018-11-21 19:09:42 +01:00
Alex Hultman 7a43906e1a Don't crash if there's no post handler 2018-11-07 10:56:22 +01:00
Alex Hultman bb5f805ee2 Fix up LoopData inplace init 2018-11-06 10:01:17 +01:00
Alex Hultman 894609e638 Pass opCode around, add Loop::setPostHandler 2018-11-04 10:44:11 +01:00
Alex Hultman 0d09d1db02 Multiple definitions 2018-11-04 08:59:34 +01:00
Alex Hultman 57255c874d Hook up AsyncSocket with WebSocket 2018-10-30 03:26:43 +01:00
Alex Hultman f2e2b7107a Wrap up messageHandler, send(message) 2018-10-30 03:01:19 +01:00
Alex Hultman 292476366c Make WebSockets benchmarkable 2018-10-30 01:53:28 +01:00
Alex Hultman eb5cd17c78 Add fast enough WebSocket benchmark 2018-10-30 01:47:10 +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 a54b4c8419 Make sure to writeStatus before writeHeader 2018-10-28 16:26:48 +01:00
Alex Hultman c0eaf297ed Fix HttpResponse::write with timeout & internalEnd comments 2018-10-28 03:54:16 +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 005243c8de HttpResponse::internalEnd for end & tryEnd 2018-10-28 02:26:08 +02:00
Alex Hultman f558bce8ca New AsyncSocket interface with bool failure 2018-10-28 00:46:28 +02:00
Alex Hultman 8cfda9f4b0 Handle socket closing, shutdown, error & (upgrade) in HTTP handlers 2018-10-17 22:23:25 +02:00