Hi,
Thank you for the explanation. It looks like since I've installed Yosemite there is a bug in usbmuxd that collapses my kernel TCP/IP stack.
Once you connect our iPhone 4 (maybe iPhone 5 does not suffer this problem) to your mac, then you wait for about 1 or 2 days (it may take longer) then I cannot open TCP connections to my own host (I'm doing Java development and I notice this problem because I can no longer open Java in debug mode).
This is what I do to detect this problem:
open terminal
$ ps -ef | grep usbmuxd
this shows the process number, in my case it was 51
$ netstat -av | grep 51 | wc -l
in other words, grep network status using process number as filter, then count the number of lines.
it shows 1311 in my computer at this moment.
you can see the details using other commands...
I'm going to see if this process can be tuned but a fix in 10.10.2 version is required!