uWebSockets icon indicating copy to clipboard operation
uWebSockets copied to clipboard

HTTP Requests with more than 4 GB is not supported

Open mirkootter opened this issue 3 years ago • 1 comments

The Content-Length attribute is parsed as a unsigned int, which gives the wrong result for stream sizes larger than 4 GB.

In our company, we use µWebSockets to provide websocket and REST API endpoints. The REST API endpoints are used, for example, to upload binary blobs of data.

Unfortunately, those data blobs can become very large. We were able to fix the problem by changing some unsigned int to uint64_t in HTTPParser.h, but maybe other users may have this problem as well.

mirkootter avatar Sep 21 '22 14:09 mirkootter

Feel free to PR it as size_t

uNetworkingAB avatar Sep 21 '22 14:09 uNetworkingAB

Please add your changes to be merged if you want it fixed. Will close as this is a very unusual request.

uNetworkingAB avatar Sep 25 '22 13:09 uNetworkingAB