Commit Graph
104 Commits
Author SHA1 Message Date
Alex Hultman abb22793ff Bunch 'o experimental changes 2023-05-07 01:28:07 +02:00
Alex Hultman e5b1d3f83c Fix another HTTP async cork bug 2023-04-21 19:20:44 +02:00
Alex Hultman c5de72c9be Fix async upgrade inside cork 2023-04-15 22:14:23 +02:00
Alexey TiminandGitHub 6243be0e9e Fix reported content length for HttpResponse::endWithoutBody (#1557) 2023-03-06 11:36:00 +01:00
JanandGitHub c2209fbad2 Fix some typos (#1570)
* Fix typo for optional_data (closes #1567)

* Fix typo in comment
2023-02-05 08:59:03 +01:00
Alex Hultman b647f20a6d maxLifetime impl. WIP, waiting for uSockets bump 2022-12-27 15:17:07 +01:00
Alex Hultman 5919290fe3 More strict handling of connection: close 2022-11-06 03:13:32 +01:00
Alex Hultman f0586366da Take some from jarred 2022-10-23 03:41:03 +02:00
Alex Hultman bcf5034e3c Write Date header in all responses 2022-10-16 12:37:21 +02:00
Alex Hultman c77cae4635 Require 16kb/sec HTTP upload throughput or drop the uploader 2022-09-25 15:48:00 +02:00
Alex Hultman e4c6fbf8de Fix onWritable calling markDone resulting in potential heap-use-after-free 2022-05-02 01:38:11 +02:00
Alex Hultman c4d62d71fc Make pause/resume cross-backend 2021-12-15 07:10:38 +01:00
Alex HultmanandGitHub 28932572bf Disable http timeouts during throttling 2021-12-15 06:12:09 +01:00
Alex Hultman 6dc4a11d10 Experimental pause/resume throttling 2021-12-14 21:44:01 +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 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 415fec3830 Add DEDICATED_DECOMPRESSOR CompressOption 2021-09-28 04:06:49 +02:00
Alex Hultman 4243874967 Rewritten pub/sub, v20 2021-09-25 04:46:10 +02:00
Alex Hultman 7c1ba44545 Improve large backpressure drain performance 2021-09-16 17:13:13 +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
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
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 acbe52518f Remove f2, add ofats::any_invocable 2021-02-19 07:09:55 +01:00
Alex Hultman 49929a6c74 Cheaper timeout system 2021-02-01 23:51:47 +01:00
Alex Hultman 76487df709 Hook up WebSocket::publish as sender 2021-01-29 13:27:04 +01:00
Alex Hultman 359c26b0bf Send back connection close header 2021-01-25 14:04:48 +01:00
Alex Hultman 83adf40583 Add closeConnection to HttpResponse::end, FIN & close 2021-01-25 13:20:55 +01:00
Alex Hultman 7265ffe480 Experimental: rewrite extensions negotiation 2021-01-11 07:27:40 +01:00
Alex HultmanandGitHub 5b70871a08 writeHeader should writeStatus also for int64 2020-12-22 13:59:06 +01:00
Alex Hultman ad0a961430 Experimental: Fix all signed/unsigned warnings 2020-11-30 23:00:36 +01:00
Alex Hultman 270308f104 Add Loop::setSilent 2020-09-18 23:42:21 +02:00
Alex Hultman 1fdcfa559e Improve fuzzing coverage 2020-08-06 17:07:19 +02:00
Alex Hultman 4fcfe49bcc getWriteOffset should give size_t 2020-07-29 08:56:32 +02:00
Alex Hultman f2198ccfac Fix >2gb streamed HTTP responses 2020-07-29 08:41:53 +02:00
Alex Hultman 8dfabd559d Respond with server_max_window_bits if applicable 2020-07-02 01:06:10 +02:00
Alex Hultman 1a2c5a9527 Make getNativeHandle public 2020-06-20 23:45:30 +02:00
Alex Hultman 025415d1a0 Clean-ups, bump copyright date 2020-06-08 13:31:06 +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 2538cd18e9 Add WITH_PROXY flag 2020-06-06 12:59:40 +02:00
Alex Hultman e70bbb4fb6 Add basic proxy parser 2020-06-05 19:23:15 +02:00
Alex Hultman 9e3a75b19a Clean-ups 2020-06-04 13:19:25 +02:00
Alex Hultman df14af9713 Bump version mark to 18 2020-06-03 07:59:15 +02:00
Alex Hultman 625efbc499 Don't pass req in open handler 2020-06-02 12:59:36 +02:00
Alex Hultman 6735bad79c Pass UserData when upgrading 2020-06-02 12:55:05 +02:00
Alex Hultman cb48712b3d Make it stick together just barely 2020-06-02 12:40:51 +02:00