Commit Graph
424 Commits
Author SHA1 Message Date
e3dioandGitHub e8b870c7ba Can't unsubscribe without subscriber (#1383) 2021-11-20 20:37:46 +01:00
Alex Hultman 30b88fde9e Only support endWithoutBody() for now 2021-11-13 12:07:25 +01:00
Alex Hultman 00deb291e3 Add endWithoutBody 2021-11-13 11:59:47 +01:00
Alex Hultman 9a5bc5d09c Clear subscriptions before calling close handler, not after 2021-11-13 09:23:09 +01:00
Alex Hultman 01d16b3ce8 Fix broken compression 2021-10-31 04:34:39 +01:00
Alex Hultman 406250ee22 Fix and add more decompressors 2021-10-30 23:53:56 +02:00
Alex Hultman 1dd372d6ac Basic fragmented send feature 2021-10-30 17:46:16 +02:00
Alex Hultman 02691e0cde Fix Windows build? 2021-10-01 04:24:23 +02:00
Alex Hultman 7956546836 Fix getSendBuffer reordering bug 2021-09-30 22:03:58 +02:00
root 0ede7e5d8e Optimize big message publishing, fix unreferenced publishes 2021-09-28 23:22:38 +00:00
Alex HultmanandGitHub 814a7ee53e Clear outgoingMessages on last drained subscriber 2021-09-28 23:23:00 +02:00
Alex Hultman 415fec3830 Add DEDICATED_DECOMPRESSOR CompressOption 2021-09-28 04:06:49 +02:00
Alex Hultman 7a3bc47f75 And that is totally wrong & broken 2021-09-27 02:21:46 +02:00
Alex Hultman a924404bed That's definitely not correct either 2021-09-26 20:33:41 +02:00
Alex Hultman 5e1d1f1388 Well that's not correct 2021-09-25 21:43:56 +00:00
Alex Hultman 60939de843 Move TopicTree to the App 2021-09-25 21:24:59 +00:00
Alex Hultman dd67cb01f2 Trigger & fix first fuzzing bug 2021-09-25 06:26:58 +02:00
Alex Hultman 4243874967 Rewritten pub/sub, v20 2021-09-25 04:46:10 +02:00
Alex HultmanandGitHub f1cd150efb Clean senderHoles from deleted subscriber 2021-09-22 21:25:36 +02:00
Alex HultmanandGitHub 6393f97bfb Erase backpressure in steps of 1/32th 2021-09-20 19:10:43 +02:00
Alex Hultman 34cadcee27 getBufferedAmount should only see totalLength 2021-09-20 15:13:11 +00:00
Alex Hultman 3eefc51c08 Reduce pendingRemoval limit to 32kb 2021-09-20 15:01:42 +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 292b00c4c3 Fix requiresWrite uncorking bug 2021-09-15 02:38:42 +02:00
Alex Hultman d4a24fdb5e Fix v19 reordering bug 2021-09-13 12:58:18 +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
Alex HultmanandGitHub 030d113710 Fix WebSocket::close being called in close handler (#1320) 2021-08-29 21:49:18 +02:00
Mark PlomerandGitHub 501c090ef5 Shorter socket-timeouts after WebSocket::end() (#1245) (#1246) 2021-08-28 21:27:32 +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
hst-mandGitHub d94bf2cd43 forSubscriber needs to act like set_intersection
* fix #1269

* Update TopicTree.h

* improve performance

* cleanup

* indent

* move variables

* latestMatch

* group emitted messages

* whitespace

* typo

* improve performance
2021-06-26 22:25:21 +02:00
Dmitry IgrishinandGitHub c0ba2eb7b4 Fix 4Gb limit streamed HTTP on Raspberry Pi 32bit (#1253)
Commits f2198ccfac and 4fcfe49bcc
are fixed 2Gb limit, but introduced 4Gb limit on Rasperry Pi 32 bit.
This is because the max value of type `size_t` is `4294967295` on this
system.
Furthermore, the Standard Library use `std::uintmax_t` as a type
of value returned by `std::filesystem::file_size`.
2021-05-09 15:06:50 +02:00
alexhultman-2faandGitHub b7c82d7910 Fix calculateIdleTimeoutCompnents 2021-04-13 14:19:05 +02:00
Alex Hultman 75e2479a9c Do not append / to root-level topicNames 2021-04-10 23:16:04 +02:00
Alex Hultman 5df25ffa59 Fix lookupTopic 2021-04-10 22:24:11 +02:00
Alex Hultman 65d1498774 Make conceptual pub/sub changes for v19 2021-04-10 17:22:16 +02:00
Alex HultmanandGitHub 0b97cc72d3 Remove unused Multipart functions 2021-03-04 08:31:29 +01:00
Alex Hultman b7202e71ee Fix Multipart parser bug 2021-03-03 12:56:33 +01:00
Alex Hultman ca6d4e3119 Never return more than maxPayloadLength in PMD mock 2021-03-01 12:46:12 +01:00
Alex Hultman 013809f09a Alright, another try 2021-02-28 13:32:15 +01:00
Alex Hultman facd80b30c Use "mocked zlib" (not really) when fuzzing 2021-02-28 12:41:06 +01:00
Alex Hultman 8089063504 Expose payload to ping/pong events 2021-02-26 01:32:06 +01:00
Alex Hultman 29e6ea9f94 Raise zlib compression level 2021-02-24 12:54:35 +01:00
Alex Hultman 137425f9d2 Oops! Libdeflate inflate never worked 2021-02-24 12:05:56 +01:00
Alex Hultman 3eae7116e7 Add WITH_LIBDEFLATE option, pass Autobahn 2021-02-24 10:49:49 +01:00
Alex Hultman b35978e1f3 I'm a total moron 2021-02-22 00:59:28 +01:00
Alex Hultman 380b3a7134 Make getUserData type safe 2021-02-21 01:31:38 +01:00
Alex Hultman c7805e2e48 Remove uWS namespace specifier 2021-02-20 23:50:50 +01:00
Alex Hultman 6bf2e75589 Many changes and additions to pub/sub APIs 2021-02-20 15:58:20 +01:00