Fixed socket not timing out at specified interval