Post

Replies

Boosts

Views

Activity

Comment on Is gethostbyname safe?
I did some automated tests, and in the 480 tests, the first request after the app starts, using gethostbyname can be about 20ms faster on average than request without gethostbyname. I have not encountered such crashes myself, but only saw other person's cases in the forum: https://developer.apple.com/forums/thread/711054.
Dec ’22
Comment on Is gethostbyname safe?
I did some automation tests, and in the 480 tests, the first request after the app starts, using gethostbyname can be about 20ms faster on average than without gethostbyname. I have not encountered such crashes myself, but only saw other person's cases in the forum: https://developer.apple.com/forums/thread/711054
Dec ’22
Comment on Is gethostbyname safe?
Could you explain why gethostbyname doesn't work, I thought gethostbyname and getaddrinfo were pretty much the same in my case. Also I would like to confirm that by calling getaddrinfo or CFHostGetAddressing, the system will cache the IP address and use it for the next WKWebView or NSURLRequest to speed up the network request, is that right?
Dec ’22