[client] Add timeout when receive data.