made second_packet_timeout configurable