YMHTTP icon indicating copy to clipboard operation
YMHTTP copied to clipboard

设置请求超时的定时器进不去

Open ZhengXiuQun opened this issue 4 years ago • 3 comments

  1. 自己内网模拟一条请求60秒超时。
  2. 发现定时器YMTimeoutSource一直不响应。然后直接断点发现,是如下代码一直在执行一直在占用着workquery线程,所以导致定时器没执行到。就想问下这是为什么,为什么请求退出去了,如下代码定时器也一直在执行。 企业微信截图_52f573b2-bd38-4f70-8341-d9ae35959e7b

ZhengXiuQun avatar Jul 29 '20 02:07 ZhengXiuQun

搞个 Demo 给我哈...

zymxxxs avatar Aug 20 '20 02:08 zymxxxs

在ios12系统上,不清楚为什么,系统一直认为socket还有数据可以操作,所以数据在不同,所以把workquery给堵住了。 外面还有个超时定时器,导致超时定时器迟迟不进去。

需要将遗留的问题结局,这样子才能在 action 上跑全设备,可以抓出更多问题

zymxxxs avatar Sep 11 '20 09:09 zymxxxs

这个问题解决了,我也遇到同一个问题Terminating app due to uncaught exception 'libcurl.multi', reason: 'An error occurred, CURLMcode is 8' 错误位置在 [_wself timeoutTimerFired];

rocklong avatar Jun 09 '23 06:06 rocklong