Comments (15)
目前会的,这个后边会优化处理,但一般50ms内会返回的
from happy-dns-objc.
今天我们提交的app被苹果拒了,理由是启动崩溃。苹果还给发了崩溃日志。
原因是我在app启动的时候使用happydns去解析了一下我们的网站,也怪我没注意这块,直接在主线程里调用解析了,我们自己测试的时候这个解析确实很快,并没有出什么问题。但似乎在苹果那边解析的不是很顺利,到20秒的时候被系统干掉了。
QNResolver添加了119.29.29.29、180.76.76.76和systemResolver
下边是崩溃日志的截图
苹果那边给出的建议是app需要支持IPv6,所以猜测他们肯定是在IPv6环境下测试的。
但是我自己对网络这块也不太懂,所以不知道这个问题具体发生在了哪,所以把这个问题反馈上来,希望能给happydns带来一点帮助。
from happy-dns-objc.
我这边在ipv6 情况下跑过单元测试的,能方便把你们的app 发给我测试么? 我qq 7427578,另外具体的dns 配置给下
from happy-dns-objc.
另外 网络请求不能放在主线程
from happy-dns-objc.
被系统杀掉的log?
from happy-dns-objc.
app由于是公司的,所以没办法提供,这个log就是苹果给发过来的日志
from happy-dns-objc.
QNDnsmanager 配置的dns 服务器地址给下
from happy-dns-objc.
QNResolver添加了119.29.29.29、180.76.76.76和systemResolver 都是按照说明添加的
from happy-dns-objc.
不知道resolver顺序有没有影响,我当时是最后添加的systemResolver
from happy-dns-objc.
119.29.29.29 这个国外会慢一些,建议根据时区 调整dns server 顺序
from happy-dns-objc.
好的,目前已经把系统的放在首位了happy dns是一个resolver解析成功后就不会继续使用后边的解析了吗?
from happy-dns-objc.
是的,失败才使用后面的
from happy-dns-objc.
明白了,多谢解答
from happy-dns-objc.
但还是建议 使用dispatch 到非主线程来执行请求域名解析到ip, 接着进行http 请求,然后回调回来
from happy-dns-objc.
嗯,现在已经这么做了,当时做的太随意😓
from happy-dns-objc.
Related Issues (20)
- happy-dns可以和afnetworking配合使用吗 HOT 1
- query到的结果有时候是空字符串 HOT 3
- 导入SDK编译出错 HOT 2
- 能提供watchos支持吗 HOT 1
- 实在不明白这里为什么要用同步网络请求 HOT 7
- IPV6网络和Https都不支持么 HOT 5
- 在 QNGetAddrInfo.m 中导入系统库时的写法有点问题 HOT 1
- was mutated while being enumerated. 崩溃 HOT 5
- 注释错误 HOT 1
- 如何访问已经禁止ip访问的网站? HOT 3
- 如何使用tcp协议获取信息
- 怎么手动集成? HOT 1
- Collection <__NSArrayM: 0x116a7f560> was mutated while being enumerated HOT 2
- 解析回来的IP列表中有最优IP吗?发现同一域名请求回来的IP列表一直在变动,是随机的? HOT 1
- 'HappyDNS.h' file not found HOT 1
- 可以提供 M1 模拟器的支持吗?
- 请问支持自定义dns解析的ip么? HOT 3
- NSURLErrorDomain Code=-999,如何集成http请求? HOT 3
- Does it support edns? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from happy-dns-objc.