#696 wfastcgi on ISS8.5 not working with bigfiles?



I am running a IIS8.5 server on Windows 2012R2. I am using python 3.5 64bits (though I have tried with different versions of python e.g. 2.7 32 bits and 3.4 32 bits). I am trying to run a simple flask application that tries to save a file sent via a POST request. I am using the latest wfastcgi.py script 3.0.0.
When the file to be uploaded is big (200MB), the request doesnt go through and I always get (from a detailed error trace, in this case testing with Python2.7):

<Data Name="ContextId">{80000012-0001-F700-B63F-84710C7967BB}</Data>
<Data Name="ErrorDescription">C:\Python27\python.exe - The FastCGI process exceeded configured request timeout</Data>
<RenderingInfo Culture="en-US">
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<TimeCreated SystemTime="2016-12-15T16:24:09.150Z"/>
<Correlation ActivityID="{80000012-0001-F700-B63F-84710C7967BB}"/>
<Execution ProcessID="5164" ThreadID="5656"/>
<Data Name="ContextId">{80000012-0001-F700-B63F-84710C7967BB}</Data>
<Data Name="ModuleName">FastCgiModule</Data>
<Data Name="Notification">128</Data>
<Data Name="HttpStatus">500</Data>
<Data Name="HttpReason">Internal Server Error</Data>
<Data Name="HttpSubStatus">0</Data>
<Data Name="ErrorCode">2147942658</Data>
<Data Name="ConfigExceptionInfo"></Data>
<RenderingInfo Culture="en-US">
<freb:Description Data="Notification">EXECUTE_REQUEST_HANDLER</freb:Description>
(0x80070102)</freb:Description>ode">The wait operation timed out.

I had following time-outs:
Site: Connection Time-out : 600
FastCGI setings:
Activity timeout 600
Request timeout: 600

When I use directly the Flask framework the upload works and it takes about 50 secs. It's a file of 200MB.
If the file is small, everything works.

Here the output on IIS logging:

#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2016-12-16 11:35:06
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2016-12-16 11:50:06 188.xx.xx.xx POST /doconverter/api/v1.0/test2 - 80 - 188.xx.xx.xx HTTPie/0.9.6 - 500 0 258 869703

I can post the code if relevant. It looks to me that the problem is on the wfastcgi.py and how it deals with big requests.

Thank you for any hint!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks