Commit 9c7853ed authored by Claes Sjofors's avatar Claes Sjofors

rt_qmon, rt_rxmax fix

parent 722c9e9b
...@@ -984,7 +984,7 @@ get_tmo ( ...@@ -984,7 +984,7 @@ get_tmo (
} else if (do_inc) { } else if (do_inc) {
lp->np->link.rtt_rto *= 2; lp->np->link.rtt_rto *= 2;
if (lp->np->link.rtt_rto > lp->np->link.rtt_rxmax) if (lp->np->link.rtt_rto > lp->np->link.rtt_rxmax)
lp->np->link.rtt_rto = lp->np->link.rtt_rxmax; lp->np->link.rtt_rto = lp->np->link.rtt_rxmax + 1;
} }
return (time_tClock) (time_Clock(NULL, NULL) + rto); return (time_tClock) (time_Clock(NULL, NULL) + rto);
...@@ -1692,6 +1692,7 @@ send_ack ( ...@@ -1692,6 +1692,7 @@ send_ack (
errno = iosb.tsize; errno = iosb.tsize;
} }
#else #else
// printf( "sendmsg ack\n");
bytes = sendmsg(l.sock, &msg.msg, 0); bytes = sendmsg(l.sock, &msg.msg, 0);
#endif #endif
thread_MutexUnlock(&l.send_mutex); thread_MutexUnlock(&l.send_mutex);
...@@ -1848,6 +1849,7 @@ seg_send ( ...@@ -1848,6 +1849,7 @@ seg_send (
errno = iosb.tsize; errno = iosb.tsize;
} }
#else #else
// printf( "sendmsg segment\n");
sp->bytes = sendmsg(l.sock, &msg.msg, 0); sp->bytes = sendmsg(l.sock, &msg.msg, 0);
#endif #endif
thread_MutexUnlock(&l.send_mutex); thread_MutexUnlock(&l.send_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment