MOD:mod the implementation of client from nio to generic socket, but there is a bug all the time