Revision: 222
http://mod-aspdotnet.svn.sourceforge.net/mod-aspdotnet/?rev=222&view=rev
Author: wrowe
Date: 2009-04-15 03:19:04 +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_aspdotnet/trunk/Apache.Web/WorkerRequest.h
Modified: mod_aspdotnet/trunk/Apache.Web/WorkerRequest.h
===================================================================
--- mod_aspdotnet/trunk/Apache.Web/WorkerRequest.h 2009-04-15 03:18:46 UTC (rev 221)
+++ mod_aspdotnet/trunk/Apache.Web/WorkerRequest.h 2009-04-15 03:19:04 UTC (rev 222)
@@ -632,7 +632,7 @@
#endif
FileStream *stream = new 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.
|