[Cppcms-users] pending request
Brought to you by:
artyom-beilis
|
From: Василий Т. <par...@gm...> - 2015-03-14 14:13:22
|
Hello everybody.
I've got strange behaviour of cppcms (or nginx?).
The browser sets pending state for ajax request to cppcms fastcgi app with
caution "Provisional headers are shown".
*Exactly* 1 min later the response come back *successfully*. This is about
both firefox and google chrome. And both waits for exactly 1 minute.
Nginx log fills with such kind of messages:
2015/03/14 16:40:09 [error] 3824#0: *200 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 192.168.88.10,
server: my.server, request: "POST /ajax/user_corner HTTP/1.1", upstream:
"fastcgi://[::1]:5555", host: "my.server", referrer: "http://my.server/".
nginx conf
location ~ /ajax/.+ {
fastcgi_pass localhost:5555;
fastcgi_pass_header "X-Accel-Redirect";
add_header Cache-Control "max-age=0, no-cache, no-store";
fastcgi_split_path_info ^(.*/ajax)(.+)$;
fastcgi_param PATH_INFO
$fastcgi_script_name$fastcgi_path_info;
include fastcgi_params;
}
cppcms app conf
...
"session" : {
"expire" : "renew",
"timeout" : 604800,
"location" : "client",
"client" : {
"hmac" : "sha1",
"hmac_key" : "my key"
},
"cookies" : {
"prefix" : "mantra"
}
},
"service" : {
"api" : "fastcgi",
"port" : 5555,
"ip" : "127.0.0.1",
"worker_processes" : 0
},
"daemon" : {
"enable" : false,
"lock" : "/home/me/test.lock",
"user" : "nginx",
"group" : "nginx"
},
"cache" : {
"backend" : "thread_shared",
"limit" : 128
},
...
Cppcms console is lack of errors. The app is the simplest synchronous one.
It looks like cppcms does not respond to request.
1 more moment: if i refresh the page in series (forcing ajax call), 1 pass
is successfull, another one is not.
Some part (which one?) of chain creates pause for 1 min
=> everybody waits for it to finish while cppcms app already done
=> another call (on refresh) is OK.
Digging into google does not help :(
Please, someone..
|