From 5cd7c210662ffeb4399995c1115975831fd6b51c Mon Sep 17 00:00:00 2001 From: Zhang Xiang Date: Thu, 23 Jun 2022 15:56:19 +0800 Subject: [PATCH] Update docs about default value of socket_max_unwritten_bytes (#1819) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 对齐源码中阈值默认值 * 对齐源码中阈值默认值 --- docs/cn/error_code.md | 2 +- docs/en/error_code.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cn/error_code.md b/docs/cn/error_code.md index 7bb9d6cf84..5339c232a4 100644 --- a/docs/cn/error_code.md +++ b/docs/cn/error_code.md @@ -38,7 +38,7 @@ brpc中常见错误的打印内容列表如下: | ERPCTIMEDOUT | 1008 | 否 | RPC超时 | "reached timeout=%dms" | | EFAILEDSOCKET | 1009 | 是 | RPC进行过程中TCP连接出现问题 | "The socket was SetFailed" | | EHTTP | 1010 | 否 | 非2xx状态码的HTTP访问结果均认为失败并被设置为这个错误码。默认不重试,可通过RetryPolicy定制 | Bad http call | -| EOVERCROWDED | 1011 | 是 | 连接上有过多的未发送数据,常由同时发起了过多的异步访问导致。可通过参数-socket_max_unwritten_bytes控制,默认8MB。 | The server is overcrowded | +| EOVERCROWDED | 1011 | 是 | 连接上有过多的未发送数据,常由同时发起了过多的异步访问导致。可通过参数-socket_max_unwritten_bytes控制,默认64MB。 | The server is overcrowded | | EINTERNAL | 2001 | 否 | Server端Controller.SetFailed没有指定错误码时使用的默认错误码。 | "Internal Server Error" | | ERESPONSE | 2002 | 否 | response解析错误,client端和server端都可能设置 | 形式广泛"Missing required fields in response: ...""Fail to parse response message, ""Bad response" | | ELOGOFF | 2003 | 是 | Server已经被Stop了 | "Server is going to quit" | diff --git a/docs/en/error_code.md b/docs/en/error_code.md index 571b6d0b3f..baefbc28fa 100644 --- a/docs/en/error_code.md +++ b/docs/en/error_code.md @@ -36,7 +36,7 @@ Following table shows common error codes and their descriptions: | ERPCTIMEDOUT | 1008 | No | RPC timeout. | "reached timeout=%dms" | | EFAILEDSOCKET | 1009 | Yes | The connection is broken during RPC | "The socket was SetFailed" | | EHTTP | 1010 | No | HTTP responses with non 2xx status code are treated as failure and set with this code. No retry by default, changeable by customizing RetryPolicy. | Bad http call | -| EOVERCROWDED | 1011 | Yes | Too many messages to buffer at the sender side. Usually caused by lots of concurrent asynchronous requests. Modifiable by `-socket_max_unwritten_bytes`, 8MB by default. | The server is overcrowded | +| EOVERCROWDED | 1011 | Yes | Too many messages to buffer at the sender side. Usually caused by lots of concurrent asynchronous requests. Modifiable by `-socket_max_unwritten_bytes`, 64MB by default. | The server is overcrowded | | EINTERNAL | 2001 | No | The default error for `Controller::SetFailed` without specifying a one. | Internal Server Error | | ERESPONSE | 2002 | No | fail to serialize the response, may be set on either client-side or server-side | Misc forms: "Missing required fields in response: …" "Fail to parse response message, " "Bad response" | | ELOGOFF | 2003 | Yes | Server has been stopped | "Server is going to quit" | @@ -85,4 +85,4 @@ You have to make sure that different modules have same understandings on same Er - Prefer system error codes which have fixed values and meanings, generally. - Share code on error definitions between multiple modules to prevent inconsistencies after modifications. -- Use `BAIDU_REGISTER_ERRNO` to describe new error code to ensure that same error code is defined only once inside a process. \ No newline at end of file +- Use `BAIDU_REGISTER_ERRNO` to describe new error code to ensure that same error code is defined only once inside a process.