Mailing List Archive

#1832: Bad request instead of RC 413 when http_max_hdr exceeded
#1832: Bad request instead of RC 413 when http_max_hdr exceeded
---------------------------------+----------------------
Reporter: vko | Type: defect
Status: new | Priority: normal
Milestone: Varnish 4.0 release | Component: varnishd
Version: 4.0.3 | Severity: normal
Keywords: |
---------------------------------+----------------------
Hello,

in case you send more than allowed number of headers (defined as
http_max_hdr) is expected RC 413 (in varnishstat there is the description
for RC 413: 413 means that HTTP headers exceeded length or count limits).
Instead of RC 413 we get RC 400 Bad request.

It could be a bug

Thanks

Vko

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1832>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1832: Bad request instead of RC 413 when http_max_hdr exceeded [ In reply to ]
#1832: Bad request instead of RC 413 when http_max_hdr exceeded
----------------------+----------------------------------
Reporter: vko | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: Varnish 4.0 release
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution: wontfix
Keywords: |
----------------------+----------------------------------
Changes (by lkarsten):

* status: new => closed
* resolution: => wontfix


Comment:

Hi.

The use of 413 vs 400 has been discussed a few times in the past, and I
don't think there is any new information here.

I don't see the client changing its behavior automatically based on the
return code, so manual intervention would be required. In browsers, the
user probably won't even see what we return.

If you feel strongly about it, send a patch.

Related: #1608

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1832#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1832: Bad request instead of RC 413 when http_max_hdr exceeded [ In reply to ]
#1832: Bad request instead of RC 413 when http_max_hdr exceeded
----------------------+----------------------------------
Reporter: vko | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: Varnish 4.0 release
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution: wontfix
Keywords: |
----------------------+----------------------------------

Comment (by lkarsten):

Also related is #416, including `tests/r00416.vtc` which shows the current
behavior.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1832#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs