[client_socket] use multi-line conditionals