unify client_signal and server_read_signal