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

超时时长不精准问题 #241

Open
FoneG opened this issue Jan 11, 2021 · 1 comment
Open

超时时长不精准问题 #241

FoneG opened this issue Jan 11, 2021 · 1 comment

Comments

@FoneG
Copy link

FoneG commented Jan 11, 2021

开屏一般都需要设置一个超时逻辑,直接使用AFNetWorking进行请求时设置的timeoutInterval,并不是那么精准。设置2s的超时,但实际上可能因为主线程任务过多,请求时长只有1.2s的request就会收到超时的error回调。

请问大佬怎么处理开屏广告超时的逻辑

@JC-Sung
Copy link

JC-Sung commented Mar 2, 2021

那你只能在APP里面提前缓存网络广告数据了,这个地方就算你设置了20秒超时,网络不稳定也不一定成功得到回调啊

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

No branches or pull requests

2 participants