mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 21:14:09 +00:00
do not set rtime too many times to 0.it's enough to do it in tcp_output_segment
This commit is contained in:
parent
a993e962f5
commit
3e6202f614
@ -425,7 +425,6 @@ tcp_output(struct tcp_pcb *pcb)
|
|||||||
|
|
||||||
while(seg != NULL &&
|
while(seg != NULL &&
|
||||||
ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
|
ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
|
||||||
pcb->rtime = 0;
|
|
||||||
#if TCP_CWND_DEBUG
|
#if TCP_CWND_DEBUG
|
||||||
DEBUGF(TCP_CWND_DEBUG, ("tcp_output: snd_wnd %lu, cwnd %lu, wnd %lu, effwnd %lu, seq %lu, ack %lu, i%d\n",
|
DEBUGF(TCP_CWND_DEBUG, ("tcp_output: snd_wnd %lu, cwnd %lu, wnd %lu, effwnd %lu, seq %lu, ack %lu, i%d\n",
|
||||||
pcb->snd_wnd, pcb->cwnd, wnd,
|
pcb->snd_wnd, pcb->cwnd, wnd,
|
||||||
@ -458,7 +457,6 @@ tcp_output(struct tcp_pcb *pcb)
|
|||||||
for(useg = pcb->unacked; useg->next != NULL; useg = useg->next);
|
for(useg = pcb->unacked; useg->next != NULL; useg = useg->next);
|
||||||
useg->next = seg;
|
useg->next = seg;
|
||||||
}
|
}
|
||||||
/* seg->rtime = 0;*/
|
|
||||||
} else {
|
} else {
|
||||||
tcp_seg_free(seg);
|
tcp_seg_free(seg);
|
||||||
}
|
}
|
||||||
@ -583,7 +581,6 @@ tcp_rexmit(struct tcp_pcb *pcb)
|
|||||||
pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);
|
pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);
|
||||||
|
|
||||||
++pcb->nrtx;
|
++pcb->nrtx;
|
||||||
pcb->rtime = 0;
|
|
||||||
|
|
||||||
/* Don't take any rtt measurements after retransmitting. */
|
/* Don't take any rtt measurements after retransmitting. */
|
||||||
pcb->rttest = 0;
|
pcb->rttest = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user