|
|
|
|
@ -509,7 +509,8 @@ tcp_connect(struct tcp_pcb *pcb, struct ip_addr *ipaddr, u16_t port,
|
|
|
|
|
pcb->rcv_wnd = TCP_WND; |
|
|
|
|
pcb->rcv_ann_wnd = TCP_WND; |
|
|
|
|
pcb->snd_wnd = TCP_WND; |
|
|
|
|
/* The send MSS is updated when an MSS option is received. */ |
|
|
|
|
/* As initial send MSS, we use TCP_MSS but limit it to 536.
|
|
|
|
|
The send MSS is updated when an MSS option is received. */ |
|
|
|
|
pcb->mss = (TCP_MSS > 536) ? 536 : TCP_MSS; |
|
|
|
|
#if TCP_CALCULATE_EFF_SEND_MSS |
|
|
|
|
pcb->mss = tcp_eff_send_mss(pcb->mss, ipaddr); |
|
|
|
|
@ -991,7 +992,8 @@ tcp_alloc(u8_t prio)
|
|
|
|
|
pcb->rcv_ann_wnd = TCP_WND; |
|
|
|
|
pcb->tos = 0; |
|
|
|
|
pcb->ttl = TCP_TTL; |
|
|
|
|
/* The send MSS is updated when an MSS option is received. */ |
|
|
|
|
/* As initial send MSS, we use TCP_MSS but limit it to 536.
|
|
|
|
|
The send MSS is updated when an MSS option is received. */ |
|
|
|
|
pcb->mss = (TCP_MSS > 536) ? 536 : TCP_MSS; |
|
|
|
|
pcb->rto = 3000 / TCP_SLOW_INTERVAL; |
|
|
|
|
pcb->sa = 0; |
|
|
|
|
|