mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 23:15:37 +00:00
fixed bug #33962 TF_FIN not always set after FIN is sent. (This merely prevents nagle from not transmitting fast after closing.)
This commit is contained in:
parent
d154f5c653
commit
626131fb28
@ -21,6 +21,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-08-22: Simon Goldschmidt
|
||||||
|
* tcp_out.c: fixed bug #33962 TF_FIN not always set after FIN is sent. (This
|
||||||
|
merely prevents nagle from not transmitting fast after closing.)
|
||||||
|
|
||||||
2011-07-22: Simon Goldschmidt
|
2011-07-22: Simon Goldschmidt
|
||||||
* api_lib.c, api_msg.c, sockets.c, api.h: fixed bug #31084 (socket API returns
|
* api_lib.c, api_msg.c, sockets.c, api.h: fixed bug #31084 (socket API returns
|
||||||
always EMSGSIZE on non-blocking sockets if data size > send buffers) -> now
|
always EMSGSIZE on non-blocking sockets if data size > send buffers) -> now
|
||||||
|
@ -133,6 +133,7 @@ tcp_send_fin(struct tcp_pcb *pcb)
|
|||||||
if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
|
if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
|
||||||
/* no SYN/FIN/RST flag in the header, we can add the FIN flag */
|
/* no SYN/FIN/RST flag in the header, we can add the FIN flag */
|
||||||
TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
|
TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
|
||||||
|
pcb->flags |= TF_FIN;
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user