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

线程卡死 #32

Open
supermario11 opened this issue Dec 21, 2018 · 2 comments
Open

线程卡死 #32

supermario11 opened this issue Dec 21, 2018 · 2 comments

Comments

@supermario11
Copy link

诊断的时候,返回界面,卡死

@shengjiehou123
Copy link

逻辑放到子线程去做,刷新页面在主线程做即可解决界面卡死问题

@Emiyazhang
Copy link

在我的实测中遇到过该问题,部分host情况下,在主线程调用

  • (NSArray *)getIPV4DNSWithHostName:(NSString *)hostName
    中的
    phot = gethostbyname(hostN);

DNS长时间查询未返回,会导致主线程卡死。

但是放在子线程能正常返回结果。o(╯□╰)o

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

3 participants