« Previous Next »

Thread: Client-IIS connection disconnects suddenly while reading request

Last post 01-13-2009 7:41 AM by dkinjal. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 11-28-2008, 10:09 AM

    • dkinjal
    • Not Ranked
    • Joined on 09-27-2007, 5:23 AM
    • Posts 2

    Client-IIS connection disconnects suddenly while reading request

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

     

     

    Hello All,

     

    I am facing a strange issue with IIS7, ASP.NET 3.5. Following is the problem description with some background:

     

    Please read the text in dark color to directly jump to problem by skipping background and related information.

     

    Two years back I had developed ‘Upload Control’ for one of our clients.   Couple of days back the customer requested us to upgrade it to asp.net 3.5, and make it work in IIS7 integrated mode.

     

    As HttpRequest Pipeline has been changed in IIS7, we restructured our code to suite it. We had to plug our code in to IIS7’s new HttpRequest pipeline, and do some changes in the incoming request. (The reading of incoming request is done through our code, so that we can keep updating status of the upload). We did that and its working Ok for requests of small size (small file, ranging around 2 MBs). But once we pass on bigger request (more than 30 MB or so), the Client-IIS connection is disconnected (IIS7WorkerRequest.IsClientConnected() returns false) suddenly in the middle of the request-reading process. We are not able to figureout the reason for the connection breakage.

     

    Following are some facts that might help getting more idea:

    -          The whole request is not buffered in the RAM. I have pipelined it to file system.

    -          I observed RAM consumption in the TaskManager. It fluctuates around 50% to 60%. (So nothing alarming there)

    -          Following are the configuration settings being applied:

    o   <httpruntime executiontimeout="3600" maxrequestlength="2097150"/>

    o   <processmodel memorylimit="60" timeout="60"/>

    o   <system.webserver><security><requestfiltering>
              <requestlimits maxallowedcontentlength="4104857598">

    -          Every time it disconnected after reading different amount of data from the request! Sometimes it banged at 5MBs, and couple of times it went up to 65+MBs..!

    -          Maximum Requesting Entity Body Limit (IIS Manager > ASP > Limits Properties) is set to ‘2,000,000,000’.

     

    Question we have here are:

    -          Why Client-IIS disconnects in middle of the request? Or, How/Where can we find out the reason of the connection break? W3SVC Logs are not showing useful information.

    -          Is there any other setting that’s needed to be set for allowing lengthier requests?

    -          Above all, How to fix it?

     

    Please do let me know if any further information is required.

     

    I hope someone would be able to help us in this problem!

     

    Cheers,

    Kinjal.

  • 12-03-2008, 4:59 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Client-IIS connection disconnects suddenly while reading request

    Can you any lines corresponding to your request from the IIS logs and httperr logs?  Also, you may need to collect network capture to be sure that it is the server and not the client that is disconnecting.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 01-13-2009, 7:41 AM In reply to

    • dkinjal
    • Not Ranked
    • Joined on 09-27-2007, 5:23 AM
    • Posts 2

    Re: Client-IIS connection disconnects suddenly while reading request

    Hello Anil,

    Thanks a lot for replying. And sorry for my late response.. I was busy with other stuff due to change in priorities..

    on resuming to the problem, i tried with the one possibility that i was thinking might be the cause.. I deployed the application in IIS7 installation used by other team.. i started with fresh installation of Vista.. Installed IIS7, and deployed my application. It worked. Dead simple.

    Although the problem was solved and code was delivered, its still mystery that what was the real cause of the problem in the IIS installation..

    I would like to again thank you for our cooperation. Wish you a nice time.

    Cheers,
    Kinjal.

Page 1 of 1 (3 items)
Microsoft Communities