nginx/0.7.65
имеем в логах такого рода ошибки.
sendfile() failed (9: Bad file descriptor) while sending request to upstream, client: x.x.x.x, server: foo.ru, request: "POST /edit/19067.php HTTP/1.1", subrequest: "/service/cache.php", upstream: "http://10.0.1.42:8200/service/cache.php?method=ssi&cacheid=4409", host: "foo.ru", referrer: "http://foo.ru/edit/19067.php"
к сожалению воспроизвести неполучилось, но есть предположение, что перед отправкой суб-запроса переданный в форме файл уже почищен. в связи с этим вот такая вот ситуация складывается.
локейшин, который обрабатывает сси следующий:
location ^~ /service/ {
default_type text/html;
error_page 404 502 504 = @dynamic;
if ( $request_method = POST ) {
return 404;
}
if ( $arg_cacheid = "" ) {
return 404;
}
set $memcached_key "cache|$arg_cacheid";
memcached_connect_timeout 2;
memcached_read_timeout 5;
memcached_send_timeout 5;
memcached_pass @cache;
}
баг?