<div dir="ltr">





<pre>Пытаюсь сделать Ajax POST запрос через популярный javascript framework - &quot;Jquery&quot;. Запрос подвисает где-то на секунду и, посмотрев через FireBug, я получаю:<br><br>&lt;html&gt;<br>&lt;head&gt;&lt;title&gt;411 Length Required&lt;/title&gt;&lt;/head&gt;<br>
&lt;body bgcolor=&quot;white&quot;&gt;<br>&lt;center&gt;&lt;h1&gt;411 Length Required&lt;/h1&gt;&lt;/center&gt;<br>&lt;hr&gt;&lt;center&gt;nginx/0.7.11&lt;/center&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>uname -a<br>Linux <a href="http://1837.ovz23.hc.ru">1837.ovz23.hc.ru</a> 2.6.18-028stab053.14 #1 SMP Thu Jun 19 12:56:23 MSD 2008 i686 GNU/Linux<br>
<br>/usr/local/nginx/sbin/nginx -v<br>nginx version: nginx/0.7.11<br><br>Debug log и конфиги прилагаются.<br><br>У меня подозрение на эту часть дебаг лога.<br><br>2008/08/21 14:07:04 [debug] 9922#0: *296 http request line: &quot;POST /ajax/subscribe/ HTTP/1.1&quot;<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http uri: &quot;/ajax/subscribe/&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http args: &quot;&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http exten: &quot;&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http process request header line<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Host: <a href="http://domain.ru">domain.ru</a>&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:<a href="http://1.9.0.1">1.9.0.1</a>) Gecko/2008072820 Firefox/3.0.1&quot;<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Accept: */*&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Accept-Language: ru,en-us;q=0.7,en;q=0.3&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Accept-Encoding: gzip,deflate&quot;<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Keep-Alive: 300&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Connection: keep-alive&quot;<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Content-Type: application/x-www-form-urlencoded; charset=UTF-8&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;X-Requested-With: XMLHttpRequest&quot;<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Referer: <a href="http://domain.ru/account/login/">http://domain.ru/account/login/</a>&quot;<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http header: &quot;Content-Length: 33&quot;<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http alloc large header buffer<br>2008/08/21 14:07:04 [debug] 9922#0: *296 malloc: 080C2CE0:256<br>2008/08/21 14:07:04 [debug] 9922#0: *296 malloc: 080C1710:4096<br>2008/08/21 14:07:04 [debug] 9922#0: *296 http large header alloc: 080C1710 4096<br>
2008/08/21 14:07:04 [debug] 9922#0: *296 http large header copy: 530<br>2008/08/21 14:07:04 [debug] 9922#0: *296 recv: fd:5 424 of 3566<br>2008/08/21 14:07:04 [debug] 9922#0: *296 recv: fd:5 -1 of 3142<br>2008/08/21 14:07:04 [debug] 9922#0: *296 recv() not ready (11: Resource temporarily unavailable)<br>
<br>Подскажите, куда копать?<br></pre>
</div>