Skip to content

Commit

Permalink
Modify docs/en/new_protocol.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiashun committed Sep 20, 2017
1 parent 75bdb47 commit cd4f8ee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/en/new_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Argument: source is the binary content from remote side, socket is the correspon
ParseResult could be an error or a cut message, its possible value contains:
- PARSE_ERROR_TRY_OTHERS :不是这个协议,框架会尝试下一个协议。source不能被消费。
- PARSE_ERROR_TRY_OTHERS: current protocol is not matched, the framework would try next protocol. The data in source cannot be comsumed.
- PARSE_ERROR_NOT_ENOUGH_DATA: the input data hasn't violated the current protocol yet, but the whole message cannot be detected as well. When there is new data from connection, new data will be appended to source and parse function is called again. If we can determine that data fits current protocol, the content of source can also be transferred to the internal state of protocol. For example, if source doesn't contain a whole http message, it will be consumed by http parser to avoid repeated parsing.
- PARSE_ERROR_TOO_BIG_DATA: message size is too big, the connection will be closed to protect server.
Expand Down

0 comments on commit cd4f8ee

Please sign in to comment.