Hi,
I am currently using FreeBSD 10.0-RELEASE-p7. PF redirects http port to www/nginx running in a jail.
www/nginx error log reports:
and
reports:
Every time "sendfile()" error is reported the value of state-mismatch field increases.
It happens only when serving files >= 30MB in size.
I tried changing options in /usr/local/etc/nginx/nginx.conf such as:
I replaced:
with
So far no success.
Any hint is welcome!
I am currently using FreeBSD 10.0-RELEASE-p7. PF redirects http port to www/nginx running in a jail.
www/nginx error log reports:
Code:
2014/07/19 13:11:12 [alert] 54480#0: [b]*2 sendfile() failed (1: Operation not permitted) while sending response to client[/b], client: 93.152.132.145, server: zlatkoasenov.com, request: "GET /FreeBSD/releases/amd64/10.0/Desktop/All/openjdk-7.65.17%2c1.txz HTTP/1.1", host: "www.zlatkoasenov.com", referrer: "http://www.zlatkoasenov.com/FreeBSD/releases/amd64/10.0/Desktop/All/"
#pfctl -si
reports:
Code:
No ALTQ support in kernel
ALTQ related functions disabled
Status: Enabled for 8 days 17:47:41 Debug: Urgent
State Table Total Rate
current entries 3
searches 3009010 4.0/s
inserts 33226 0.0/s
removals 33244 0.0/s
Counters
match 43215 0.1/s
bad-offset 0 0.0/s
fragment 0 0.0/s
short 0 0.0/s
normalize 0 0.0/s
memory 0 0.0/s
bad-timestamp 0 0.0/s
congestion 0 0.0/s
ip-option 0 0.0/s
proto-cksum 0 0.0/s
state-mismatch 28595 0.0/s
state-insert 0 0.0/s
state-limit 0 0.0/s
src-limit 0 0.0/s
synproxy 0 0.0/s
root@:/usr/home/zodias #
Every time "sendfile()" error is reported the value of state-mismatch field increases.
It happens only when serving files >= 30MB in size.
I tried changing options in /usr/local/etc/nginx/nginx.conf such as:
Code:
tcp_nopush on;
proxy_max_temp_file_size 0;
I replaced:
Code:
scrub in all
Code:
scrub in all fragment reassemble
So far no success.
Any hint is welcome!