Single Page Apps
WEB SERVICES / API's
Common ASP.NET Features
Current Release (Visual Studio 2013)
Articles of the Day
Hall Of Fame
HttpHandlers and HttpModules
HttpHandler or HttpModule for file upload, large files, progress indi...
Re: HttpHandler or HttpModule for file upload, large files, progress...
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Feb 13, 2003 07:45 PM
Goyaman> Are you sure you're not reading past the length of the request? If you call ReadEntityBody with a value larger than what is available, the server will hang. This is because the process is waiting for the rest of the bytes to read - or some solid confirmation that the bytes are not coming, like the client pressing stop. So the solution is to only read as much as you have available - and not less than that either, as this will also cause problems (my experience at least). I believe the proposed code from coderage retrieves the length of the request by parsing the Request-Length header. Regards, Rasmus
This site is managed for Microsoft by Neudesic, LLC. | © 2014 Microsoft. All rights reserved.
Advertise With Us
CMS by Umbraco
Hosted on Windows Azure
Feedback on ASP.NET