Revision 9f95713e

View differences:

ml.c
806 806
	pmtu new_pmtusize;
807 807
	struct timeval timeout;
808 808

  
809
	debug("ML: pmtu timeout called (lcon:%d)\n",con_id);
809 810

  
810 811
	if(connectbuf[con_id] == NULL) {
811 812
		error("ML: pmtu timeout called on non existing con_id\n");
......
819 820
		return;
820 821
	}
821 822

  
823
	info("ML: pmtu timeout while connecting(lcon:%d status:%d)\n",con_id, connectbuf[con_id]->status);
822 824

  
823 825
	timeout = connectbuf[con_id]->timeout_value;
824 826

  
825 827
	if(connectbuf[con_id]->delay || connectbuf[con_id]->trials == MAX_TRIALS - 1) {
826 828
		double delay = timeout.tv_sec + timeout.tv_usec / 1000000.0;
827 829
		delay = delay * 2;
830
		info("\tML: increasing pmtu timeout to %f sec\n", delay);
828 831
		timeout.tv_sec = floor(delay);
829 832
		timeout.tv_usec = fmod(delay, 1.0) * 1000000.0;
830 833
		if(connectbuf[con_id]->delay) {
......
836 839
	if(connectbuf[con_id]->trials == MAX_TRIALS) {
837 840
		// decrement the pmtu size
838 841
		struct timeval tout = PMTU_TIMEOUT;
842
		info("\tML: decreasing pmtu timeout from %d to %d", connectbuf[con_id]->pmtusize, pmtu_decrement(connectbuf[con_id]->pmtusize));
839 843
		connectbuf[con_id]->pmtusize = pmtu_decrement(connectbuf[con_id]->pmtusize);
840 844
		connectbuf[con_id]->timeout_value = tout; 
841 845
		connectbuf[con_id]->trials = 0;

Also available in: Unified diff