Revision cdb94197

View differences:

ml.c
739 739
			if (!recvdatabuf[recv_id]->timeout_event) {
740 740
				//start time out
741 741
				//TODO make timeout at least a DEFINE
742
				struct timeval timeout = { 4, 0 };
742
				struct timeval timeout = { 2, 0 };	//TODO: use some configurable timeout here
743 743
				recvdatabuf[recv_id]->timeout_event = event_new(base, -1, EV_TIMEOUT, &recv_timeout_cb, (void *) (long)recv_id);
744 744
				evtimer_add(recvdatabuf[recv_id]->timeout_event, &timeout);
745 745
			}
......
1410 1410
			/*
1411 1411
			* timeout values for the pmtu discovery
1412 1412
			*/
1413
			connectbuf[con_id]->timeout_value.tv_sec = 1;
1414
			connectbuf[con_id]->timeout_value.tv_usec = 0;
1413
			connectbuf[con_id]->timeout_value.tv_sec = 0;	//TODO: make this timeout configurable
1414
			connectbuf[con_id]->timeout_value.tv_usec = 250000;
1415 1415
			connectbuf[con_id]->connectionID = con_id;
1416 1416

  
1417 1417
			connectbuf[con_id]->connection_head = connectbuf[con_id]->connection_last = malloc(sizeof(struct receive_connection_cb_list));

Also available in: Unified diff