dotnet / WatsonWebserver

Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
MIT License
403 stars 83 forks source link

to download over 2gb files #89

Closed panboy75 closed 2 years ago

panboy75 commented 2 years ago

I modified sendChunk() and sendFinalChunk() functions to send over 2gb files.

I added nDataSize parameter to send real data. nDataSize is the return value of ReadAsync() function. It's useful when it processes the last block.

MemoryStream can't deal over 2gb files. So I removed "MemoryStream _Data" variable. I could not find the purpose of _Data variable.

And I modified README.md file

jchristn commented 2 years ago

Thanks @panboy75 I appreciate you putting this together. Merging in now and will have a new version on NuGet shortly!

jchristn commented 2 years ago

Commit: https://github.com/jchristn/WatsonWebserver/commit/40786d870024258f9eadd39dbb53347b0b7d3d42 NuGet: https://www.nuget.org/packages/Watson/4.2.2.7

Thanks again @panboy75 I really appreciate the PR!