If my app runs for a longer period of time, I get the following error over and over again:
<Error>: tcp_connection_host_start 7181 DNSServiceGetAddrInfo failed: -65537
<Warning>: dnssd_clientstub deliver_request: socketpair failed 24 (Too many open files)
I have to completely kill the app and start it again. I didn't find a way to reproduce this except for using the app for more than an hour.
I'm using Alamofire and MDWamp to make REST calls and send push messages.
Can somebody tell me what this error means exactly? Or ideas on how to reproduce it?
Kind regards,
Matthias
I FINALLY figured it out. MDWamp was using up File Descriptors like crazy because SSL Handshakes failed and I was reconnecting all the time.
This was really hard to reproduce because it takes a while until the maximum alllowed number of File Descriptors are used up and also when the build Scheme was set to Debug, the SSL Handshake did not fail... Well maybe somebody else would've guessed it in my position, but it certainly kept me busy for a while 🙂
For anybody who stumbles upon this and is interested, here is my GitHub issue for MDWamp documenting the problem and solution:
https://github.com/mogui/MDWamp/issues/42
Eskimo: Thank you so much for your help, without your descriptor counting code I wouldn't know where I would be 😝 Also the release is planned in one week so I'm just really glad I finally figured it our!