Fix socket connetions from multiple clients.