]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
fixed bug #33962 TF_FIN not always set after FIN is sent. (This merely prevents nagle...
authorSimon Goldschmidt <goldsimon@gmx.de>
Mon, 22 Aug 2011 16:52:27 +0000 (18:52 +0200)
committerSimon Goldschmidt <goldsimon@gmx.de>
Mon, 22 Aug 2011 16:52:27 +0000 (18:52 +0200)
CHANGELOG
src/core/tcp_out.c

index e31b298587a0ecb65b9f081601a1e748b78eeffe..3c7b2c6e4fb8bf173077b5a9b6fc847efb7e5f40 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -41,6 +41,10 @@ HISTORY
 
  ++ 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
   * 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
index 069df8939d71013f1de3990784c322a67916d4bd..db9e115729763ff2c9077048e748168f0960371d 100644 (file)
@@ -136,6 +136,7 @@ tcp_send_fin(struct tcp_pcb *pcb)
     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 */
       TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
+      pcb->flags |= TF_FIN;
       return ERR_OK;
     }
   }