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

Block socket 设置 timeout, 网络慢时返回 error code EGAIN, 改成像 EINTR 一样重试处理而不是… #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

betallcoffee
Copy link

Block socket 设置 timeout, 网络抖动时返回 error code EGAIN, 改成像 EINTR 一样重试处理而不是立即 close 。
网络太差时,重试多次后,会出现 error code EPIPE ,socket 挂掉。 这时的处理就是 close 。
所以没有加重试次数限制了。

@longbai
Copy link
Contributor

longbai commented Apr 27, 2016

LGTM

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.

2 participants