Revision: 221
http://mod-aspdotnet.svn.sourceforge.net/mod-aspdotnet/?rev=221&view=rev
Author: wrowe
Date: 2009-04-15 03:18:46 +0000 (Wed, 15 Apr 2009)
Log Message:
-----------
Ensure HttpResponse.TransmitFile(filename, ...) succeeds, oberstation suggests
this is the right combination of flags. Needs testing for sendfile [en|dis]abled
on various levels of .NET
Submitted by: Tobias Polley (rrayst)
Modified Paths:
--------------
mod_aspdotnet2/trunk/Apache.Web/WorkerRequest.h
Modified: mod_aspdotnet2/trunk/Apache.Web/WorkerRequest.h
===================================================================
--- mod_aspdotnet2/trunk/Apache.Web/WorkerRequest.h 2008-03-03 22:39:57 UTC (rev 220)
+++ mod_aspdotnet2/trunk/Apache.Web/WorkerRequest.h 2009-04-15 03:18:46 UTC (rev 221)
@@ -661,7 +661,7 @@
#endif
FileStream ^stream = gcnew FileStream(filename, FileMode::Open,
FileAccess::Read,
- FileShare::Read, 0, true);
+ FileShare::Read, 8192, true);
SendResponseFromFile(stream->Handle, offset, length);
stream->Close();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|