Revision 26f3bd83 ml.c

View differences:

ml.c
770 770

  
771 771
	if(connectbuf[con_id]->delay || connectbuf[con_id]->trials == MAX_TRIALS - 1) {
772 772
		double delay = timeout.tv_sec + timeout.tv_usec / 1000000.0;
773
		delay = delay * 5;
773
		delay = delay * 2;
774 774
		timeout.tv_sec = floor(delay);
775 775
		timeout.tv_usec = fmod(delay, 1.0) * 1000000.0;
776 776
		if(connectbuf[con_id]->delay) {
......
1145 1145
		* enter a NAT traversal timeout that takes care of retransmission
1146 1146
		*/
1147 1147
		struct event *ev1;
1148
		struct timeval timeout_value_NAT_traversal = { 2, 0 };
1148
		struct timeval timeout_value_NAT_traversal = { 1, 0 };
1149 1149
		ev1 = evtimer_new(base, nat_traversal_timeout, NULL);
1150 1150
		event_add(ev1, &timeout_value_NAT_traversal);
1151 1151

  
......
1379 1379
			/*
1380 1380
			* timeout values for the pmtu discovery
1381 1381
			*/
1382
			connectbuf[con_id]->timeout_value.tv_sec = 15;
1382
			connectbuf[con_id]->timeout_value.tv_sec = 1;
1383 1383
			connectbuf[con_id]->timeout_value.tv_usec = 0;
1384 1384
			connectbuf[con_id]->connectionID = con_id;
1385 1385

  

Also available in: Unified diff