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

UT 失败 #7

Open
zymxxxs opened this issue Apr 1, 2020 · 9 comments · Fixed by #13
Open

UT 失败 #7

zymxxxs opened this issue Apr 1, 2020 · 9 comments · Fixed by #13
Assignees
Labels
bug Something isn't working

Comments

@zymxxxs
Copy link
Owner

zymxxxs commented Apr 1, 2020

描述

完善 redirect 相关逻辑之后,也添加了相关UT,UT执行过程中,10次会失败2-3次。

目前暂时无法定位问题

@zymxxxs zymxxxs added the bug Something isn't working label Apr 1, 2020
@zymxxxs zymxxxs self-assigned this Apr 1, 2020
@zymxxxs
Copy link
Owner Author

zymxxxs commented Apr 1, 2020

目前猜测 303 之后,重新 startNewTransfer 的相关问题,待排查。

@zymxxxs
Copy link
Owner Author

zymxxxs commented Apr 2, 2020

猜测:https://github.com/zymxxxs/YMHTTP/blob/master/YMHTTP/curl/YMEasyHandle.m#L264 处参数为1的问题,需改为 timeout。

待验证

@zymxxxs
Copy link
Owner Author

zymxxxs commented Apr 7, 2020

[self.delegate needTimeoutTimerToValue:0];

@zymxxxs
Copy link
Owner Author

zymxxxs commented Apr 8, 2020

目前测试情况来看,感觉靠谱。

待继续验证

@zymxxxs zymxxxs linked a pull request Apr 14, 2020 that will close this issue
@zymxxxs zymxxxs reopened this May 2, 2020
@zymxxxs
Copy link
Owner Author

zymxxxs commented May 2, 2020

目前 actions 里失败率 100%, wtf

本地失败率 10%

脑袋疼

@zymxxxs
Copy link
Owner Author

zymxxxs commented May 26, 2020

本地偶发性失败,github action 100%失败

目前初步定位问题:

  • 经常发生失败的地方,在于断言,而且断言初衷是为了核实各个阶段的状态。目前来看,情况不是很严重,基本上带 block 的几个delegate 不用的话,就不会出问题。
  • 一个有趣现象,本地UT成功率在90%,action 失败率在 100%,问题需要进一步排查

@zymxxxs zymxxxs pinned this issue May 26, 2020
@zymxxxs zymxxxs unpinned this issue Jun 2, 2020
@vercity
Copy link

vercity commented Oct 27, 2020

CURLM_RECURSIVE_API_CALL 有这样的问题

@zymxxxs
Copy link
Owner Author

zymxxxs commented Oct 27, 2020

CURLM_RECURSIVE_API_CALL 有这样的问题

您好,可以拓展一下说说嘛?

@rocklong
Copy link

rocklong commented Jun 9, 2023

An error occurred, CURLMcode is 8 CURLM_RECURSIVE_API_CALL 报这个问题 错误点 在 updateTimeoutTimerToValue 的block回调 [_wself timeoutTimerFired];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants