Opened 10 months ago

Closed 10 months ago

Last modified 7 months ago

#2589 closed enhancement (invalid)

http write filter limit

Reported by: ifdandy@… Owned by:
Priority: major Milestone: nginx-1.26
Component: nginx-core Version: 1.25.x
Keywords: Cc: ifdandy@…
uname -a: Linux localhost.localdomain 6.5.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 25 17:13:43 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: 1.25.3

Description

https://github.com/ifdandy/awsome_js/blob/main/nginx%E6%8A%A5%E9%94%99_20240112153515.png

My server encountered an error when sending to the client: [alert] 2171#0: *1163 http write filter limit 000000000056228F.
I tried modifying various configurations but couldn't find the solution. I couldn't find any information on Google and ChatGPT.

Please help me!!!

user www www; 
worker_processes auto; 
pid /var/run/nginx.pid; 
error_log /www/log/nginx_error.log; 
worker_rlimit_nofile 51200; 
worker_shutdown_timeout 10; 
events {
    use epoll; 
    worker_connections 51200; 
    multi_accept on; 
}
http {
    include mime.types; 
    log_format main_host '$remote_addr\t$time_local\t$request_method\t$scheme://$host$request_uri\t$status\t$body_bytes_sent\t$http_referer\t$http_user_agent\t$http_x_forwarded_for\t$request_time'; 
    access_log /site/logs/access.log main_host; 
    default_type text/html; 
    server_names_hash_bucket_size 512; 
    client_header_buffer_size 32k; 
    large_client_header_buffers 4 32k; 
    client_max_body_size 50m; 
    sendfile on; 
    tcp_nopush on; 
    keepalive_timeout 60; 
    tcp_nodelay on; 
    gzip on; 
    gzip_min_length 1k; 
    gzip_buffers 4 16k; 
    gzip_http_version 1.1; 
    gzip_comp_level 5; 
    gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml; 
    gzip_vary on; 
    gzip_proxied expired no-cache no-store private auth; 
    gzip_disable "MSIE [1-6]\."; 
    limit_conn_zone $binary_remote_addr zone=perip:10m; 
    limit_conn_zone $server_name zone=perserver:10m; 
    proxy_cache_path /site/nginx/cache levels=1:2 keys_zone=my_cache:2048m max_size=100g; 
    req_status_zone server_name $server_name 256k; 
    req_status_zone server_addr $server_addr 256k; 
    req_status server_name server_addr; 
    # 加载站点独立配置
    include /www/data/vhost/cdn_proxy/*.upstream; 
    include /www/data/vhost/*.conf; 
    include /www/data/vhost/cdn_site/*.conf; 
    server {
        listen 80 default_server; 
        listen 443 ssl default_server; 
        server_name localhost; 
        root /site; 
        add_header Content-Type 'text/html; charset=utf-8'; 
        error_page 403 /www/data/403.html; 
        error_page 404 /www/data/404.html; 
        # DEFAULT SSL CONFIG
        ssl_certificate /site/fullchain.pem; 
        ssl_certificate_key /site/privatekey.pem; 
        ssl_protocols TLSv1.2 TLSv1.3; 
        ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; 
        ssl_prefer_server_ciphers off; 
        ssl_session_cache shared:SSL:10m; 
        ssl_session_timeout 10m; 
        add_header Strict-Transport-Security "max-age=31536000"; 
        location /nginx_status {
            stub_status on; 
            allow 127.0.0.1; 
            deny all; 
        }
        location /req_status {
            req_status_show on; 
            allow 127.0.0.1; 
            deny all; 
        }
        location /download {
            add_header Content-Disposition "attachment;filename*=utf-8'zh_cn'$arg_n"; 
            alias /www/server/download; 
            autoindex on; 
            #	autoindex_exact_size on;
        }
    }
}

Attachments (1)

nginx报错_20240112153515.png (523.1 KB ) - added by ifdandy@… 10 months ago.

Download all attachments as: .zip

Change History (3)

by ifdandy@…, 10 months ago

comment:1 by Maxim Dounin, 10 months ago

Resolution: invalid
Status: newclosed

There are no such alerts in nginx code, check 3rd party modules and/or patches you are using.

comment:2 by m.herasimovich, 7 months ago

Milestone: nginx-1.25nginx-1.26

Milestone renamed

Note: See TracTickets for help on using tickets.