Skip to content

fix handletimeout ineffective #295

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

Merged
merged 2 commits into from
Sep 1, 2021

Conversation

Isites
Copy link
Contributor

@Isites Isites commented Aug 28, 2021

fix (#294)

After the timeout, the client should return as soon as possible to release resources

@Isites Isites changed the base branch from dev to master August 28, 2021 17:07
@Isites Isites changed the title Feature/handletimeout ineffective fix handletimeout ineffective Aug 28, 2021
@@ -164,6 +164,11 @@ func (s *TarsProtocol) ParsePackage(buff []byte) (int, int) {
// InvokeTimeout indicates how to deal with timeout.
func (s *TarsProtocol) InvokeTimeout(pkg []byte) []byte {
rspPackage := requestf.ResponsePacket{}
// invoketimeout need to point out failed requests
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里注释应该是超时也需要返回IRequestId吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释已经修改

@defool defool merged commit 9c04438 into TarsCloud:master Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants