Skip to content
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

fix long time block when remote endpoint crash. #816

Merged
merged 5 commits into from Apr 23, 2022

Conversation

lifepuzzlefun
Copy link
Contributor

@lifepuzzlefun lifepuzzlefun commented Apr 20, 2022

fix #817

  1. add tcp conn write and read deadline to avoid long time block socket ops when remote endpoint crash.

  2. enable tcp keep alive.

  3. remove request from responseTable when InvokeAsync.

  4. doRequest close socket connection with destory call.

…et ops when remote endpoint crash.

2. enable tcp keep alive.
@lifepuzzlefun
Copy link
Contributor Author

lifepuzzlefun commented Apr 20, 2022

wangjinlong.1048576 added 2 commits April 21, 2022 10:59
2. change default read/write Deadline to 120 sec.
3. close connection when set deadline fail.
@lifepuzzlefun
Copy link
Contributor Author

@guyinyou @Git-Yang @maixiaohai can you take a look?

@guyinyou
Copy link
Contributor

look good to me 👍

Copy link

@caigy caigy left a comment

Choose a reason for hiding this comment

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

LGTM

@lifepuzzlefun
Copy link
Contributor Author

@ShannonDing @cserwen @xujianhai666 can you take a look?

@xujianhai666 xujianhai666 merged commit 40242bc into apache:master Apr 23, 2022
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.

Client may block long time because not set Read Write timeout.
7 participants