-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpWebRequest.GetRequestStream returned stream does not send data immediately in .NET Core #45871
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsI try to upload a large file with HttpWebRequest in .NET Core or .NET 5 , but a "IOException: Stream was too long." is thrown. The request is not send immediately and is somehow buffered.
|
How big is the file? Do you have simple app to outline the code you use? |
The file is around 8GB. I was able to use the HttpClient insted HttpWebRequest to workaround this issue |
That is good to know. This feels like we have |
I expect this is the same issue as #18632 (albeit for GetRequestStream instead of GetRequestStreamAsync). |
Yes could be a similar issue. |
Duplicate of #18632 |
I try to upload a large file with HttpWebRequest in .NET Core or .NET 5, but a "IOException: Stream was too long." is thrown.
The request is not send immediately and is somehow buffered.
repro:
https://stackoverflow.com/questions/61383052/httpwebrequest-getrequeststream-returned-stream-does-not-send-data-immediately-i
The text was updated successfully, but these errors were encountered: