usbmuxd takes all sockets : no other network connection possible

Solution 1:

I had the same problem: As soon as iTunes was started, the count of sockets in CLOSE_WAIT grew until the machine was out of sockets.

This must have been a bug in usbmuxd and seems to be fixed in iTunes 12.1: zero dangling sockets for half an hour on my machine.