cleard input_data in handle_tcp_rx