<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CBSCRIV%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5CBSCRIV%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5CBSCRIV%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:1;
        mso-generic-font-family:roman;
        mso-font-format:other;
        mso-font-pitch:variable;
        mso-font-signature:0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-noshow:yes;
        mso-style-priority:99;
        color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-noshow:yes;
        mso-style-priority:99;
        color:purple;
        mso-themecolor:followedhyperlink;
        text-decoration:underline;
        text-underline:single;}
span.date
        {mso-style-name:date;
        mso-style-unhide:no;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-size:10.0pt;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>Hello All,

<p class="MsoNormal"> </p>

<p class="MsoNormal">We are running our site on a RHEL server.  Nginx is
setup to proxy traffic to Tomcat.  We are hearing reports from some users
of issues uploading files.  These issues are sporadically happening and it
sounds like users with flakey connections are the ones affected.  Based on
what’s reported, I think there is an issue with a users connection timing out
during the upload process.  This is causing uploads to fail instead of
keeping the session open until the timeout clears.  The app (Grails) and
Tomcat have a pretty long timeout set (30 min) so it doesn’t appear to be
something there.  I’m wondering if there are backend timeout issues with
the proxy.  Maybe a problem where Nginx closes the connection to the user
or Tomcat once the user has timed out for a period of time.  We’re running
Nginx 0.7.64 and I’ve added both configuration files to <a href="http://pastie.org">pastie.org</a>. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">nginx.conf = <a href="http://www.pastie.org/908712">http://www.pastie.org/908712</a></p>

<p class="MsoNormal">virtual.conf = <a href="http://www.pastie.org/908714">http://www.pastie.org/908714</a></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’ve looked into the following directives and implementing
the “suggest” values on staging tonight.  </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">proxy_connect_timeout... <br>
Default: proxy_connect_timeout 60; <br>
suggest: proxy_connect_timeout 240; <br>
<br>
proxy_ignore_client_abort... <br>
default: proxy_ignore_client_abort off <br>
suggest: proxy_ignore_client_abort on <br>
<br>
proxy_max_temp_file_size <br>
default: proxy_max_temp_file_size 1G; <br>
suggested: proxy_max_temp_file_size 4G; <br>
<br>
proxy_read_timeout <br>
default: proxy_read_timeout 60 <br>
suggested: proxy_read_timeout 240 <br>
<br>
proxy_send_timeout <br>
default: proxy_send_timeout 60 <br>
suggested: proxy_send_timeout 240</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">client_body_timeout <br>
default: 60 <br>
suggested: client_body_timeout 240 </p>

<p class="MsoNormal"><span style="display: none;">[ <a href="https://tracker.solutionset.com/browse/SAHMEDB-101">Show »</a> ] </span></p>

<p class="MsoNormal"><a name="action_97193" id="comment_97193_header_bscrivner"></a><span style="display: none;"><a href="https://tracker.solutionset.com/secure/ViewProfile.jspa?name=bscrivner">Blake
Scrivner</a> added a comment - <span class="date">07/Apr/10 04:05 PM</span> I&#39;m
going to add those configurations above and below to stage and test to make
sure everything is fine. If it is, then I&#39;ll setup production to run with these
new values. client_body_timeout default: 60 suggested: client_body_timeout 240 </span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">The problem with this issue is I haven’t been able to
reproduce it, nor have clear cut steps to reproduce.  No precise
timestamps have been given so it  makes using the logs pretty
difficult.  Here is an interesting clip from the error.log that might help
identify the issue.  Most of my research has shown this panic happens due
to perl but this Nginx was compiled without the Perl module.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">panic: MUTEX_LOCK (22) [op.c:352]. <br>
2010/01/11 09:52:11 [error] 2250#0: *10 upstream timed out (110: Connection
timed out) while reading response header from upstream, client: 12.228.184.2,
server: <a href="http://fileblaze.net">fileblaze.net</a>, request: &quot;POST /soundblaze/upload/fileUpload/
HTTP/1.1&quot;, upstream: &quot;<a href="http://127.0.0.1:8080/soundblaze/upload/fileUpload/">http://127.0.0.1:8080/soundblaze/upload/fileUpload/</a>&quot;,
host: &quot;<a href="http://upload.fileblaze.net">upload.fileblaze.net</a>&quot;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Do you think those settings will help?  Do I need all
of these settings?  Any other suggestions I should try out?  Please
let me know if there is any more data you would like me to gather to help
troubleshoot this.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks in advance for all your help,</p>

<p class="MsoNormal">Blake</p>