Maarten Bekers wrote:
Hi,
End of May 2003, i submitted bug 20382 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20382) which describes an issue with Apache on Windows2000 Advanced Server performing very poorly in some tested configurations. I also attached a proposed patch (which i'm sure can be improved upon, but at least shows a resolution and perhaps a more clear view of what's going on). According to http://apr.apache.org/patches.html i should just ask again if it was ignored for a longer while.
The issues seems to be that when sending a file in multiple-pieces using SendFile() on Windows AS, the performance drops significantly, where as IIS performance is very well, ruling out any network problems. Because the same Apache configuration works fine on Windows2000 Professional, it also rules out any configuration errors on the Apache side of things.
Above patch uses the TransmitFile() function to send the whole file at once, instead of in 64kbyte blocks as the original program seems to do.
Thanks, Maarten Bekers.
Maarten, How do you propose to handle Timeout processing with your patch?
Bill