-
Notifications
You must be signed in to change notification settings - Fork 929
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
fix: limit rpc package data size by user's config rather than DEFAULT_LEN. #1848
Conversation
Codecov Report
@@ Coverage Diff @@
## 3.0 #1848 +/- ##
==========================================
- Coverage 46.76% 46.70% -0.06%
==========================================
Files 298 298
Lines 17178 17200 +22
==========================================
Hits 8034 8034
- Misses 8291 8310 +19
- Partials 853 856 +3
Continue to review full report at Codecov.
|
在日志中,提示下,如果通信的对端是 dubbo java,则dubbo java 无法处理超过 DEFAULT_LEN(8MiB) 的包。 |
…_LEN * Dubbo recommand package data length not greater than 8MiB. * If package data length greater than 8MiB, generate warnning. * If package data lenght greater than user's config, generate exception. Signed-off-by: stonex <[email protected]>
return nil, perrors.Errorf("Data length %d too large, max payload %d", pkgLen, DEFAULT_LEN) | ||
if pkgLen > int(DEFAULT_LEN) { // recommand 8M | ||
logger.Warnf("Data length %d too large, recommand max payload %d. "+ | ||
"Dubbo java can't handle the package which size greater than %d!!!", pkgLen, DEFAULT_LEN, DEFAULT_LEN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which size greater than = whose size is greater than
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
What this PR does:
Signed-off-by: stonex [email protected]
Which issue(s) this PR fixes:
Fixes #1839
You should pay attention to items below to ensure your pr passes our ci test
We do not merge pr with ci tests failed