xiaoxiang781216 commented on code in PR #7528: URL: https://github.com/apache/incubator-nuttx/pull/7528#discussion_r1014977580
########## net/sixlowpan/sixlowpan_tcpsend.c: ########## @@ -242,33 +242,19 @@ static int sixlowpan_tcp_header(FAR struct tcp_conn_s *conn, memcpy(ipv6tcp->tcp.ackno, conn->rcvseq, 4); /* ACK number */ memcpy(ipv6tcp->tcp.seqno, conn->sndseq, 4); /* Sequence number */ - /* Set the TCP window */ + /* Update the TCP received window based on I/O buffer availability */ - if (conn->tcpstateflags & TCP_STOPPED) Review Comment: Because nobody set STOPPED flag, one improvement is implement shutdown as @patacongo mention which will set STOPPED definitely. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
