Skip to content

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