Skip to content

Commit

Permalink
Update docs about default value of socket_max_unwritten_bytes (apache…
Browse files Browse the repository at this point in the history
…#1819)

* 对齐源码中阈值默认值

* 对齐源码中阈值默认值
  • Loading branch information
hawkxiang authored Jun 23, 2022
1 parent 502208d commit 5cd7c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/cn/error_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" |
Expand Down
4 changes: 2 additions & 2 deletions docs/en/error_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" |
Expand Down Expand Up @@ -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.
- Use `BAIDU_REGISTER_ERRNO` to describe new error code to ensure that same error code is defined only once inside a process.

0 comments on commit 5cd7c21

Please sign in to comment.