dubbo-go icon indicating copy to clipboard operation
dubbo-go copied to clipboard

the default maxMsgLength for getty param

Open leoxu1719 opened this issue 11 months ago • 2 comments

Environment

  • Server:
  • Client:
  • Protocol:
  • Registry:

Issue description

when the payload exceed 512kb, the error prompt:

getty/listener.go:343 WritePkg error: Data length 525511 too Large, max payload 102400, &remoting.Response(ID:0, Version:"2.0.2" SerialID:0x2, Status:0x14

I debug the maxMsgLength in gettySessionParam is 102400 111

but we found the sample in doc is : 222

so that if we don't changed the config for maxMsgLength, the response could not return and error throw when the response length exceed 100kb

Logs

Click me to check logs
Copy logs to here.

leoxu1719 avatar Mar 12 '24 11:03 leoxu1719

The number on the document is misspelled. We would fix it.

DMwangnima avatar Mar 13 '24 13:03 DMwangnima

The number on the document is misspelled. We would fix it.

so what are the default and advanced value for this maxMsgLen param , and why we process the request that contains 512kb length for the response, could be successfully return in java version , instead of dubbo-go ? what's different for the config ?

leoxu1719 avatar Mar 13 '24 14:03 leoxu1719