Updated socket reading on CP.