MapleLove2014 commented on issue #2662:
URL: https://github.com/apache/brpc/issues/2662#issuecomment-2900122773
我们这边使用brpc0.9版本作为thrift
server,当client的请求体的thrift定义和server的定义不一致时,复现了这个必超时+CLOSE_WAIT的问题。
比如client端请求体定义:
struct Request{
1: **required** i32 id;
}
但是server请求体的定义是:
struct Request{
1: **optional** i32 id;
}
这种情况下如果发起请求就会直接超时+CLOSE_WAIT,改成相同的定义之后,就没这个问题了。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]