drain excess input from socket