Changes between Initial Version and Version 2 of Ticket #2455
- Timestamp:
- 02/25/23 17:29:24 (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2455
- Property Status new → accepted
-
Ticket #2455 – Description
initial v2 1 **Problem**: when built-in error '400' redirected to custom handler, and used incorrect request method along with invalid/absent 'Host:' header, nginx does not perform any actions, just hangs keeping connection open.1 **Problem**: when built-in error '400' redirected to custom handler, and used incorrect request method, nginx does not perform any actions, just hangs keeping connection open. 2 2 3 **Expected behaviour**: error handler redirected and either connection closed without response (case A) of specified response served and connection closed(case B).3 **Expected behaviour**: error handler redirected and either connection closed without response (case A) of specified response returned and connection closed as well (case B). 4 4 5 5 Server config: 6 6 {{{ 7 7 server { 8 listen 443 default_server;9 listen [::]:443 default_server;8 listen 443 ssl http2 default_server; 9 listen [::]:443 ssl http2 default_server; 10 10 11 11 include snippets/snakeoil.conf; 12 12 13 13 error_page 400 /drop; 14 #error_page 400 =200 /drop; # makes no difference 14 15 # Case 'A' 15 16 location = /drop { return 444; } … … 17 18 #location = /drop { return 200 "error\n"; } # doesn't work either 18 19 19 location / { return 200 "server ok! "; }20 location / { return 200 "server ok!\n"; } 20 21 } 21 22 }}} … … 67 68 <now hangs here infinitely> 68 69 }}} 70 71 ''UPD: fixed typos and removed unrelated condition.''