0

I am developing an app which communicates with server. Often communication drops and works again only when i terminate the app and relaunch it. from the device logs i found this error message

 <Error>: tcp_connection_destination_setup_socket_events 211705 kqueue() failed Too many open files

i went through the following post,but did not understand anything, help me out on the root cause and how to fix this .

vishnuvarthan
  • 492
  • 1
  • 6
  • 23
  • That thread doesn't really seem applicable to your situation. I googled your exact error message "[kqueue() failed Too many open files](https://www.google.com.au/?gws_rd=ssl#q=kqueue()+failed+Too+many+open+files)" and there appears to be a lot of results for that, have you tried any of them? – Christian Jan 06 '15 at 05:31
  • results where related to OSX and also where not usefull – vishnuvarthan Jan 06 '15 at 05:35
  • From the message my guess would be that you are "leaking" sockets. Look carefully at your code and make sure that you are either reusing connections or properly costing your connection before opening a new one – Paulw11 Jan 06 '15 at 06:24
  • it is just a nsurl connection which is sent every minute – vishnuvarthan Jan 06 '15 at 08:52

0 Answers0