How to disable url length validation #6116
Unanswered
cantaylancapraz
asked this question in
General
Replies: 1 comment
-
The length limit is hardcoded in the HTTP library at 64KB, which, it turns out, is still quite a bit larger than most HTTP implementations support. Generally speaking, it's not sustainable for HTTP servers to support URIs of extreme lengths like 500KB, as this would allow malicious clients to consume exorbitant resources, eventually forcing the server to run out of memory and be killed. Have you considered using POST requests or another method for encoding data in HTTP payloads rather than in the URI? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I send a request via linkerd and url length might be longer than 500.000 character.
In this case, Linkerd don't send request to server and throws 400. When I check the logs, I see following logs.
INFO ThreadId(01) outbound:accept{peer.addr=192.168.61.189:35418 target.addr=132.145.37.221:8002}: linkerd2_app_core::serve: Connection closed error=invalid URI
I want to disable uri length validation. How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions