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

v1.0_(example)
open
nobody
5
2016-12-16
2016-12-16
No

Hello,

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):

<EventData>
<Data Name="ContextId">{80000012-0001-F700-B63F-84710C7967BB}</Data>
<Data Name="ErrorDescription">C:\Python27\python.exe - The FastCGI process exceeded configured request timeout</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>SET_RESPONSE_ERROR_DESCRIPTION</Opcode>
<Keywords>
<Keyword>RequestNotifications</Keyword>
</Keywords>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{002E91E3-E7AE-44AB-8E07-99230FFA6ADE}</EventGuid>
</ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<EventID>0</EventID>
<Version>1</Version>
<Level>3</Level>
<Opcode>16</Opcode>
<Keywords>0x100</Keywords>
<TimeCreated SystemTime="2016-12-15T16:24:09.150Z"/>
<Correlation ActivityID="{80000012-0001-F700-B63F-84710C7967BB}"/>
<Execution ProcessID="5164" ThreadID="5656"/>
<Computer>DOCONVERTER02</Computer>
</System>
<EventData>
<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>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>MODULE_SET_RESPONSE_ERROR_STATUS</Opcode>
<Keywords>
<Keyword>RequestNotifications</Keyword>
</Keywords>
<freb:Description Data="Notification">EXECUTE_REQUEST_HANDLER</freb:Description>
(0x80070102)</freb:Description>ode">The wait operation timed out.
</RenderingInfo>

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!
Ruben

Discussion


Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks