Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] how to config max request header size in dubbo rest? #14988

Open
4 tasks done
multiplyzero opened this issue Dec 16, 2024 · 1 comment
Open
4 tasks done

[Bug] how to config max request header size in dubbo rest? #14988

multiplyzero opened this issue Dec 16, 2024 · 1 comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@multiplyzero
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

2.6.7

Steps to reproduce this issue

dubbo 2.6.7
when i use dubbo rest and request cookie is large,the server back httpcode 413, so how can i set maxRequestHeaderSize in dubbo rest???

What you expected to happen

dubbo 2.6.7
when i use dubbo rest and request cookie is large,the server back httpcode 413, so how can i set maxRequestHeaderSize in dubbo rest???

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@multiplyzero multiplyzero added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Dec 16, 2024
@aofall
Copy link
Contributor

aofall commented Dec 24, 2024

Upgrade dubbo version to 3.2 first, then try to add the following configuration and set it by yourself.

dubbo:
  application:
    parameters:
      # set header size, the default is 8192
      max.header.size: 8192
      # set the netty chunk size, the default is 8192
      max.chunk.size: 8192
      # set request object size, the default is 1024 * 1024 * 10 = 10,485,760
      max.request.size: 10485760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

2 participants