ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Постоянные обрывы коннект ов



Это и есть debug log проблемы с limit_req ... nodelay.
Я же написал сверху строчки конфига:

tcp_nodelay    on;
limit_req_zone $binary_remote_addr  zone=avi:10m   rate=5r/m;
....
location ~* ^/film/.*\.(avi|mpg|gif|jpg)$ {
          limit_req   zone=avi  burst=5;
....

Сейчас рискну убрать limit_req.
Хм, работает сильно лучше. :)) Но все равно ситуация далека от совершенства.


Момент первый:

access.log:
220.231.30.195 - - [06/Jul/2009:13:42:56 +0400] GET /film/zerkalo.avi HTTP/1.1 XX 206 92546

debug.log:
009/07/06 13:42:53 [debug] 62060#0: *117 accept: 220.231.30.195 fd:144
2009/07/06 13:42:53 [debug] 62060#0: *117 event timer add: 144: 30000:1332887764
2009/07/06 13:42:53 [debug] 62060#0: *117 kevent set event: 144: ft:-1 fl:0025
2009/07/06 13:42:53 [debug] 62060#0: *117 post event 0822BF3C
2009/07/06 13:42:53 [debug] 62060#0: *117 delete posted event 0822BF3C
2009/07/06 13:42:53 [debug] 62060#0: *117 malloc: 082A0400:660
2009/07/06 13:42:53 [debug] 62060#0: *117 malloc: 082A0800:1024
2009/07/06 13:42:53 [debug] 62060#0: *117 malloc: 082A2000:4096
2009/07/06 13:42:53 [debug] 62060#0: *117 http process request line
2009/07/06 13:42:53 [debug] 62060#0: *117 recv: eof:0, avail:283, err:0
2009/07/06 13:42:53 [debug] 62060#0: *117 recv: fd:144 283 of 1024
2009/07/06 13:42:53 [debug] 62060#0: *117 http request line: "GET /film/zerkalo.avi HTTP/1.1"
2009/07/06 13:42:53 [debug] 62060#0: *117 http uri: "/film/zerkalo.avi"
2009/07/06 13:42:53 [debug] 62060#0: *117 http args: ""
2009/07/06 13:42:53 [debug] 62060#0: *117 http exten: "avi"
2009/07/06 13:42:53 [debug] 62060#0: *117 http process request header line
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "Accept: */*"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "Cache-Control: no-cache"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "Connection: Keep-Alive"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "Host: ivanka.arjlover.net"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "Pragma: no-cache"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "Range: bytes=471718979-471811524"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header: "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
2009/07/06 13:42:53 [debug] 62060#0: *117 http header done
2009/07/06 13:42:53 [debug] 62060#0: *117 event timer del: 144: 1332887764
2009/07/06 13:42:53 [debug] 62060#0: *117 generic phase: 0
2009/07/06 13:42:53 [debug] 62060#0: *117 add cleanup: 082A2524
2009/07/06 13:42:53 [debug] 62060#0: *117 generic phase: 1
2009/07/06 13:42:53 [debug] 62060#0: *117 http script regex: "/info/(.*)\.html"
2009/07/06 13:42:53 [notice] 62060#0: *117 "/info/(.*)\.html" does not match "/film/zerkalo.avi", client: 220.231.30.195, server: film.arjlover.net, request: "GET /film/zerkalo.avi HTTP/1.1", host: "ivanka.arjlover.net"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: "/"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: "cgi/dl.pl"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: "no.html"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: "nginx_status"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: ~ "^/unlim/.*\.(avi|mpg)$"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: ~ "/php2/"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: ~ "/mrtg/.*"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: ~ "\.(html|php|pl)$"
2009/07/06 13:42:53 [debug] 62060#0: *117 test location: ~ "^/film/.*\.(avi|mpg|gif|jpg)$"
2009/07/06 13:42:53 [debug] 62060#0: *117 using configuration "^/film/.*\.(avi|mpg|gif|jpg)$"
2009/07/06 13:42:53 [debug] 62060#0: *117 http cl:-1 max:1048576
2009/07/06 13:42:53 [debug] 62060#0: *117 generic phase: 3
2009/07/06 13:42:53 [debug] 62060#0: *117 http script var
2009/07/06 13:42:53 [debug] 62060#0: *117 http geo started: 220.231.30.195
2009/07/06 13:42:53 [debug] 62060#0: *117 http geo: No
2009/07/06 13:42:53 [debug] 62060#0: *117 http script var: "No"
2009/07/06 13:42:53 [debug] 62060#0: *117 http script value: "Yes"
2009/07/06 13:42:53 [debug] 62060#0: *117 http script equal
2009/07/06 13:42:53 [debug] 62060#0: *117 http script equal: no
2009/07/06 13:42:53 [debug] 62060#0: *117 http script if
2009/07/06 13:42:53 [debug] 62060#0: *117 http script if: false
2009/07/06 13:42:53 [debug] 62060#0: *117 http script var
2009/07/06 13:42:53 [debug] 62060#0: *117 http script var: ""
2009/07/06 13:42:53 [debug] 62060#0: *117 http script if
2009/07/06 13:42:53 [debug] 62060#0: *117 http script if: false
2009/07/06 13:42:53 [debug] 62060#0: *117 http script var
2009/07/06 13:42:53 [debug] 62060#0: *117 http script var: "/film/zerkalo.avi"
2009/07/06 13:42:53 [debug] 62060#0: *117 http script regex: "\.(gif|jpg)$"
2009/07/06 13:42:53 [notice] 62060#0: *117 "\.(gif|jpg)$" does not match "/film/zerkalo.avi", client: 220.231.30.195, server: film.arjlover.net, request: "GET /film/zerkalo.avi HTTP/1.1", host: "ivanka.arjlover.net"
2009/07/06 13:42:53 [debug] 62060#0: *117 http script if
2009/07/06 13:42:53 [debug] 62060#0: *117 http script if: false
2009/07/06 13:42:53 [debug] 62060#0: *117 post rewrite phase: 4
2009/07/06 13:42:53 [debug] 62060#0: *117 generic phase: 5
2009/07/06 13:42:53 [debug] 62060#0: *117 add cleanup: 082A26B0
2009/07/06 13:42:53 [debug] 62060#0: *117 generic phase: 6
2009/07/06 13:42:53 [debug] 62060#0: *117 generic phase: 7
2009/07/06 13:42:53 [debug] 62060#0: *117 add cleanup: 082A26CC
2009/07/06 13:42:53 [debug] 62060#0: *117 limit zone: 3747B3CD 1
2009/07/06 13:42:53 [debug] 62060#0: *117 access phase: 8
2009/07/06 13:42:53 [debug] 62060#0: *117 access phase: 9
2009/07/06 13:42:53 [debug] 62060#0: *117 post access phase: 10
2009/07/06 13:42:53 [debug] 62060#0: *117 content phase: 11
2009/07/06 13:42:53 [debug] 62060#0: *117 content phase: 12
2009/07/06 13:42:53 [debug] 62060#0: *117 content phase: 13
2009/07/06 13:42:53 [debug] 62060#0: *117 http filename: "/data/film/zerkalo.avi"
2009/07/06 13:42:53 [debug] 62060#0: *117 add cleanup: 082A26F8
2009/07/06 13:42:53 [debug] 62060#0: *117 http static fd: 145
2009/07/06 13:42:53 [debug] 62060#0: *117 http set discard body
2009/07/06 13:42:53 [debug] 62060#0: *117 HTTP/1.1 206 Partial Content
2009/07/06 13:42:53 [debug] 62060#0: *117 write new buf t:1 f:0 082A2894, pos 082A2894, size: 295 file: 0, size: 0
2009/07/06 13:42:53 [debug] 62060#0: *117 http write filter: l:0 f:0 s:295
2009/07/06 13:42:53 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:53 [debug] 62060#0: *117 http range body buf: 0-1468031082
2009/07/06 13:42:53 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:53 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 7FBFE7A0
2009/07/06 13:42:53 [debug] 62060#0: *117 write old buf t:1 f:0 082A2894, pos 082A2894, size: 295 file: 0, size: 0
2009/07/06 13:42:53 [debug] 62060#0: *117 write new buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471718979, size: 92546
2009/07/06 13:42:53 [debug] 62060#0: *117 http write filter: l:1 f:0 s:92841
2009/07/06 13:42:53 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:53 [debug] 62060#0: *117 tcp_nopush
2009/07/06 13:42:53 [debug] 62060#0: *117 sendfile() sent only 66788 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:53 [debug] 62060#0: *117 sendfile: -1, @471718979 66788:66493
2009/07/06 13:42:53 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:53 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
2009/07/06 13:42:53 [debug] 62060#0: *117 http finalize request: -2, "/film/zerkalo.avi?" 1
2009/07/06 13:42:53 [debug] 62060#0: *117 event timer add: 144: 30000:1332887868
2009/07/06 13:42:53 [debug] 62060#0: *117 kevent set event: 144: ft:-2 fl:0025
2009/07/06 13:42:54 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:42:54 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:42:54 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:54 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471785472, size: 26053
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter: l:1 f:0 s:26053
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:54 [debug] 62060#0: *117 sendfile() sent only 4096 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:54 [debug] 62060#0: *117 sendfile: -1, @471785472 4096:26053
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:54 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http writer output filter: -2, "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 event timer del: 144: 1332887868
2009/07/06 13:42:54 [debug] 62060#0: *117 event timer add: 144: 30000:1332888297
2009/07/06 13:42:54 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
009/07/06 13:42:54 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:54 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471789568, size: 21957
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter: l:1 f:0 s:21957
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:54 [debug] 62060#0: *117 sendfile() sent only 4096 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:54 [debug] 62060#0: *117 sendfile: -1, @471789568 4096:21957
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:54 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http writer output filter: -2, "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 event timer del: 144: 1332888297
2009/07/06 13:42:54 [debug] 62060#0: *117 event timer add: 144: 30000:1332888673
2009/07/06 13:42:54 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:54 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471793664, size: 17861
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter: l:1 f:0 s:17861
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:54 [debug] 62060#0: *117 sendfile() sent only 4096 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:54 [debug] 62060#0: *117 sendfile: -1, @471793664 4096:17861
2009/07/06 13:42:54 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:54 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 http writer output filter: -2, "/film/zerkalo.avi?"
2009/07/06 13:42:54 [debug] 62060#0: *117 event timer del: 144: 1332888673
2009/07/06 13:42:54 [debug] 62060#0: *117 event timer add: 144: 30000:1332889105
2009/07/06 13:42:55 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:42:55 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:42:55 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:55 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471797760, size: 13765
2009/07/06 13:42:55 [debug] 62060#0: *117 http write filter: l:1 f:0 s:13765
2009/07/06 13:42:55 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:55 [debug] 62060#0: *117 sendfile() sent only 4096 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:55 [debug] 62060#0: *117 sendfile: -1, @471797760 4096:13765
2009/07/06 13:42:55 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:55 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http writer output filter: -2, "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 event timer del: 144: 1332889105
2009/07/06 13:42:55 [debug] 62060#0: *117 event timer add: 144: 30000:1332889514
2009/07/06 13:42:55 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:42:55 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:42:55 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:55 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471801856, size: 9669
2009/07/06 13:42:55 [debug] 62060#0: *117 http write filter: l:1 f:0 s:9669
2009/07/06 13:42:55 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:55 [debug] 62060#0: *117 sendfile() sent only 4096 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:55 [debug] 62060#0: *117 sendfile: -1, @471801856 4096:9669
2009/07/06 13:42:55 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:55 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
009/07/06 13:42:55 [debug] 62060#0: *117 http writer output filter: -2, "/film/zerkalo.avi?"
2009/07/06 13:42:55 [debug] 62060#0: *117 event timer del: 144: 1332889514
2009/07/06 13:42:55 [debug] 62060#0: *117 event timer add: 144: 30000:1332889888
2009/07/06 13:42:56 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:42:56 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:42:56 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:56 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471805952, size: 5573
2009/07/06 13:42:56 [debug] 62060#0: *117 http write filter: l:1 f:0 s:5573
2009/07/06 13:42:56 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:56 [debug] 62060#0: *117 sendfile() sent only 4096 bytes (35: Resource temporarily unavailable)
2009/07/06 13:42:56 [debug] 62060#0: *117 sendfile: -1, @471805952 4096:5573
2009/07/06 13:42:56 [debug] 62060#0: *117 http write filter 082A2A10
2009/07/06 13:42:56 [debug] 62060#0: *117 copy filter: -2 "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http writer output filter: -2, "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 event timer del: 144: 1332889888
2009/07/06 13:42:56 [debug] 62060#0: *117 event timer add: 144: 30000:1332890282
2009/07/06 13:42:56 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:42:56 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:42:56 [debug] 62060#0: *117 http run request: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http writer handler: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http output filter "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 copy filter: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http postpone filter "/film/zerkalo.avi?" 00000000
2009/07/06 13:42:56 [debug] 62060#0: *117 write old buf t:0 f:1 00000000, pos 00000000, size: 0 file: 471810048, size: 1477
2009/07/06 13:42:56 [debug] 62060#0: *117 http write filter: l:1 f:0 s:1477
2009/07/06 13:42:56 [debug] 62060#0: *117 http write filter limit 65536
2009/07/06 13:42:56 [debug] 62060#0: *117 sendfile: 0, @471810048 1477:1477
2009/07/06 13:42:56 [debug] 62060#0: *117 http write filter 00000000
2009/07/06 13:42:56 [debug] 62060#0: *117 copy filter: 0 "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http writer output filter: 0, "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http writer done: "/film/zerkalo.avi?"
2009/07/06 13:42:56 [debug] 62060#0: *117 http finalize request: 0, "/film/zerkalo.avi?" 1
2009/07/06 13:42:56 [debug] 62060#0: *117 event timer del: 144: 1332890282
2009/07/06 13:42:56 [debug] 62060#0: *117 set http keepalive handler
2009/07/06 13:42:56 [debug] 62060#0: *117 http close request
2009/07/06 13:42:56 [debug] 62060#0: *117 http log handler
2009/07/06 13:42:56 [debug] 62060#0: *117 http geo started: 220.231.30.195
2009/07/06 13:42:56 [debug] 62060#0: *117 http geo: XX
2009/07/06 13:42:56 [debug] 62060#0: *117 run cleanup: 082A26F8
2009/07/06 13:42:56 [debug] 62060#0: *117 file cleanup: fd:145
2009/07/06 13:42:56 [debug] 62060#0: *117 run cleanup: 082A26CC
2009/07/06 13:42:56 [debug] 62060#0: *117 free: 082A2000, unused: 1405
2009/07/06 13:42:56 [debug] 62060#0: *117 event timer add: 144: 5000:1332865715
2009/07/06 13:42:56 [debug] 62060#0: *117 free: 082A0400
2009/07/06 13:42:56 [debug] 62060#0: *117 free: 082A0800
2009/07/06 13:42:56 [debug] 62060#0: *117 hc free: 00000000 0
2009/07/06 13:42:56 [debug] 62060#0: *117 hc busy: 00000000 0
2009/07/06 13:42:56 [debug] 62060#0: *117 tcp_nodelay
2009/07/06 13:42:56 [debug] 62060#0: *117 http empty handler
2009/07/06 13:42:56 [debug] 62060#0: *117 http empty handler
2009/07/06 13:42:58 [debug] 62060#0: *117 http empty handler
2009/07/06 13:42:59 [debug] 62060#0: *117 http empty handler
2009/07/06 13:42:59 [debug] 62060#0: *117 http empty handler
2009/07/06 13:42:59 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:00 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:00 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:43:00 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:43:00 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:00 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:01 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:01 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:01 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:01 [debug] 62060#0: *117 post event 0823AF3C
2009/07/06 13:43:01 [debug] 62060#0: *117 delete posted event 0823AF3C
2009/07/06 13:43:01 [debug] 62060#0: *117 http empty handler
2009/07/06 13:43:01 [debug] 62060#0: *117 event timer del: 144: 1332865715
2009/07/06 13:43:01 [debug] 62060#0: *117 http keepalive handler
2009/07/06 13:43:01 [debug] 62060#0: *117 close http connection: 144
2009/07/06 13:43:01 [debug] 62060#0: *117 free: 00000000
2009/07/06 13:43:01 [debug] 62060#0: *117 free: 00000000
2009/07/06 13:43:01 [debug] 62060#0: *117 free: 0829E200, unused: 56
2009/07/06 13:43:14 [error] 62100#0: *117 limiting connections by zone "one", client: 95.32.50.65, server: film.arjlover.net, request: "GET /film/vyzyvaem.ogon.na.sebja.2.avi HTTP/1.0", host: "ivanka.arjlover.net", referrer: "http://film.arjlover.net/film/"

Последняя строчка непонятно как попала в этот grep по 117
Все строчки про limit_req - убраны.


Второй момент:

77.51.208.193 - - [06/Jul/2009:13:42:57 +0400] GET /film/zastava.ilicha.1.avi HTTP/1.0 ZZ 206 148119

2009/07/06 13:42:57 [info] 62062#0: *291 kevent() reported about an closed connection (54: Connection reset by peer) while sending response to client, client: 77.51.208.193, server: film.arjlover.net, request: "GET /film/zastava.ilicha.1.avi HTTP/1.0", host: "ivanka.arjlover.net", referrer: "http://film.arjlover.net/info/zastava.ilicha.1.avi.html"

Сетевые проблемы у клиента?


Антон.


2009/7/5 Maxim Dounin <mdounin@xxxxxxxxxx>
Hello!

On Sun, Jul 05, 2009 at 05:59:48PM +0200, Anton Kuznetsov wrote:

> Гораздо информативнее чем прошлый ответ. ;)
>
> Ну что ж, пересобрал, перезапустил, не просто мне это было... В результате
> 100мб меньше чем за минуту, не знаю как это предлагалось сделать "в студию",
> попробую кусками.
>
> Это grep по *6106

[...]

> 2009/07/05 19:25:23 [debug] 11555#0: *6106 limit_req: -2 4.375
> 2009/07/05 19:25:23 [warn] 11555#0: *6106 delaying request, excess: 4.375,
> by zone "avi", client: 93.73.181.151, server: film.arjlover.net, request:
> "GET /film/devchata.cd1.avi HTTP/1.1", host: "ivanka.arjlover.net",
> referrer: "http://ivanka.arjlover.net/film"
> 2009/07/05 19:25:23 [debug] 11555#0: *6106 event timer add: 18:
> 4375:1267011892
> 2009/07/05 19:25:27 [debug] 11555#0: *6106 event timer del: 18: 1267011892
> 2009/07/05 19:25:27 [debug] 11555#0: *6106 http run request:
> "/film/devchata.cd1.avi?"
> 2009/07/05 19:25:27 [debug] 11555#0: *6106 limit_req delay

Используется limit_req с задержкой, патч не наложен.

[...]

> 2009/07/05 19:25:28 [info] 11555#0: *6106 client timed out (60: Operation
> timed out) while sending response to client, client: 93.73.181.151, server:
> film.arjlover.net, request: "GET /film/devchata.cd1.avi HTTP/1.1", host: "
> ivanka.arjlover.net", referrer: "http://ivanka.arjlover.net/film"

А это - закономерное следствие, о котором вам говорили уже не раз.  Решение
с тех пор не поменялось.

Вы помнится били себя пяткой в грудь, утверждая что ваша проблема
воспроизводится без limit_req.  И вам было предложено прислать
debug log проблемы без limit_req или с limit_req ... nodelay.  Мы
всё ещё с интересом ждём обещанного debug log'а.

Maxim Dounin

[...]

> > > > > > On Fri, Apr 03, 2009 at 01:05:50PM +0200, Anton Kuznetsov wrote:
> > > > > >
> > > > > > > А мне что делать? Мою проблему как патчить? :)
> > > > > >
> > > > > > Вам уже было сказано что именно вам делать - воспроизвести
> > > > > > проблему без limit_req или с limit_req .. nodelay, после чего
> > > > > > приносить конфиг и debug log.
> > > > > >
> > > > > > Maxim Dounin
> > > > > >
> > > > > > >
> > > > > > > 2009/4/3 Maxim Dounin <mdounin@xxxxxxxxxx>
> > > > > > >
> > > > > > > > Hello!
> > > > > > > >
> > > > > > > > On Fri, Apr 03, 2009 at 11:03:19AM +0200, Sergey Bondari wrote:
> > > > > > > >
> > > > > > > > > Hello Maxim,
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > MD> Если используется limit_req - надо либо накатить патч
> > > > (пробегал
> > > > > > > > > MD> тут давеча), либо использовать limit_req ... nodelay.
> > > > > > > > > Патч кстати проблему решил. Один вопрос - этот патч временная
> > > > > > заплатка
> > > > > > > > > от вас или уже включена в транк? В смысле каждый раз его пока
> > > > > > > > > накатывать после апдейта nginx?
> > > > > > > >
> > > > > > > > Пока - накатывать.
> > > > > > > >
> > > > > > > > Maxim Dounin
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Best regards,
> > > > > > > Anton Kuznetsov.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Best regards,
> > > > > Anton Kuznetsov.
> > > >
> > > >
> > >
> > >
> > > --
> > > Best regards,
> > > Anton Kuznetsov.
> >
> >
>
>
> --
> Best regards,
> Anton Kuznetsov.




--
Best regards,
Anton Kuznetsov.      


 




Copyright © Lexa Software, 1996-2009.