Commit Graph
49 Commits
Author SHA1 Message Date
Alex Hultman 34cadcee27 getBufferedAmount should only see totalLength 2021-09-20 15:13:11 +00:00
Alex Hultman 069e66b31c Optimize getSendBuffer for large sends 2021-09-19 01:19:29 +00:00
Alex Hultman 7c1ba44545 Improve large backpressure drain performance 2021-09-16 17:13:13 +02:00
Alex Hultman c35d6c1bb8 Add more checks and warnings for cork buffer misuse 2021-09-12 16:51:50 +02:00
Alex Hultman 78d20fd103 Add more pubsub fuzzing 2021-09-12 14:35:51 +02:00
rambleheadandGitHub 6048d026d0 Fixes #1306 - transitive dependencies in header files (#1310)
* uSockets/src/internal/networking/bsd.h
Add #include "libusockets.h" for LIBUS_SOCKET_DESCRIPTOR

* uWebSockets/src/AsyncSocket.h
Add #include <cstring> for memcpy
Add #include "libusockets.h" for us_socket

* uWebSockets/src/HttpResponse.h
Add #include "HttpContext.h" for HttpContext

* uWebSockets/src/PerMessageDeflate.h
Add #include <cstdint> for uint32_t

* uWebSockets/src/WebSocketContextData.h
Add #include "Loop.h" for Loop::get()
Add #include "AsyncSocket.h" for AsyncSocket

* uWebSockets/src/WebSocketProtocol.h
Add #include <libusockets.h> for WIN32_EXPORT macro
2021-08-28 01:21:31 +02:00
Alex Hultman 380b3a7134 Make getUserData type safe 2021-02-21 01:31:38 +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 162fa965ee AsyncSocket::getBufferedAmount should be unsigned 2020-06-26 06:07:36 +02:00
Alex Hultman aac11b07fb Add getNativeHandle functions 2020-06-20 23:36:27 +02:00
Alex Hultman 5d5f9edc63 Return empty string if we have no proxy 2020-06-06 21:07:20 +02:00
Alex Hultman 0d9cb39db6 Silence warnings, check length 2020-06-06 20:26:59 +02:00
Alex Hultman d5782fdb9c addressAsText, getRemoteProxiedAddress 2020-06-06 19:52:28 +02:00
Alex Hultman f274d63dca Fix all -Wconversion warnings 2019-12-28 21:44:54 +01:00
Alex Hultman bdac60a177 Fix a few warnings 2019-12-26 16:45:23 +01: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 5e787b19b3 Make all examples compile with GCC on Ubuntu 2019-06-09 09:32:55 +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 799fe89a9b Add experimental HttpResponse::cork 2019-04-16 16:59:28 +02:00
Alex Hultman c1ea38ae10 Quick-fix GCC build 2019-04-16 14:33:38 +02:00
Alex Hultman 495ccfc076 Update uS, add AsyncSocket::getRemoteAddress() 2019-03-03 07:40:44 +01:00
Alex Hultman f1bdbc968b First pass of overall cleanups 2019-02-10 00:17:13 +01:00
Alex Hultman 6fe717f46a Some changes to pubsub 2019-02-09 08:45:27 +01:00
Alex Hultman 92fb74b7e9 Remove last debug prints 2019-01-26 19:02:29 +01:00
Alex Hultman d331ec3e45 Refactor using new uSockets API 2019-01-25 14:15:40 +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 d597041ca4 Don't leave content-length on empty response 2018-12-29 14:27:50 +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 91620c6c42 (Just barely) pass Autobahn tests chapter 1 - 10 2018-11-21 22:46:17 +01:00
Alex Hultman 57255c874d Hook up AsyncSocket with WebSocket 2018-10-30 03:26:43 +01:00
Alex Hultman ab6abaf2e6 Apache License 2.0 2018-10-29 00:13:52 +01: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
Alex Hultman b514da14ca Almost working async file streamer 2018-09-29 21:35:28 +02:00
Alex Hultman 5a1de2039c Fix up async file streaming 2018-09-29 19:42:35 +02:00
Alex Hultman 18316d7852 Fix AsyncSocket buffering mistake 2018-09-28 14:24:00 +02:00
Alex Hultman 2c511ec904 More work on new streams 2018-09-27 23:44:46 +02:00
Alex Hultman 7f3753e9db Various comments and fixes 2018-09-23 18:00:18 +02:00
Alex Hultman ede5fb304a HTTP_ENDED_STREAM_OUT and clean-ups 2018-09-21 00:02:53 +02:00
Alex Hultman 178dae70c2 Support responses with no specified length 2018-09-20 23:14:50 +02:00
Alex Hultman 6fadfabec1 Add convenience wrapper App (again) 2018-09-15 23:56:30 +02:00
Alex Hultman 883bdfe7d7 Some clean-ups 2018-09-15 05:31:42 +02:00
Alex Hultman eee6e97fda Move files around 2018-09-15 05:04:34 +02:00