ramblehead and GitHub
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 Igrishin and GitHub
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 Hultman and GitHub
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
Alex Hultman
a8539e7463
Move most upgrading into HttpResponse
2020-06-02 10:08:31 +02:00
Alex Hultman
4be90c0114
Add upgrade handler
2020-06-01 15:45:03 +02:00
Alex Hultman and GitHub
c6a2ee0554
Change mark, 17
2020-05-24 21:38:31 +02:00
Alex Hultman
c7ac8c7e56
Store headers in bloom filter, respond to 100-continue
2020-04-06 02:48:11 +02:00
Dmitry Igrishin and GitHub
1c84277fd9
Optionally prevent sending of "uWebSockets" header ( #998 )
...
* Optionally prevent sending of "uWebSockets" header
2020-02-23 18:41:25 +01:00
Alex Hultman
f274d63dca
Fix all -Wconversion warnings
2019-12-28 21:44:54 +01:00
Alex Hultman
3fb870ac55
Clean-up and fix HttpResponse::cork behavior
2019-12-26 17:17:33 +01:00
Alex Hultman
bdac60a177
Fix a few warnings
2019-12-26 16:45:23 +01:00
Alex Hultman
1707469cf8
Change mark
2019-10-08 23:12:03 +02:00
Alex Hultman
762b18459e
Refactor a bit, put everything in uWS namespace
2019-06-09 07:53:43 +02:00
Alex Hultman
31574ec63a
Actually make it build, fix simple warning
2019-04-16 17:13:10 +02:00
Alex Hultman
799fe89a9b
Add experimental HttpResponse::cork
2019-04-16 16:59:28 +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
127d3d6a14
res.tryEnd returns [ok, hasResponded]
2019-02-09 23:31:04 +01:00
Alex Hultman
0709ec05a6
Even zero is a valid content-length
2019-02-04 00:39:45 +01:00
Alex Hultman
eaa9467d1f
Don't write mark in the middle of streaming
2019-01-29 17:15:06 +01:00
Alex Hultman
d4e767ac65
Shorten mark footprint
2019-01-26 22:08:41 +01:00
Alex Hultman
4d06180041
Move mark from WebSockets down to HTTP
2019-01-26 21:55:24 +01:00
Alex Hultman
a0eeb769c9
Carry over backpressure from Http to WS
2019-01-24 11:53:10 +01:00
Alex Hultman
19aa6ec9af
Implement hasResponded
2019-01-18 17:20:21 +01:00
Alex Hultman
2caefa9d96
We need HttpResponse::hasResponded
2019-01-18 16:36:24 +01:00