a-lunev commented on a change in pull request #5297:
URL: https://github.com/apache/incubator-nuttx/pull/5297#discussion_r789604208
##########
File path: net/tcp/tcp_input.c
##########
@@ -739,19 +737,24 @@ static void tcp_input(FAR struct net_driver_s *dev,
uint8_t domain,
}
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
- /* Update sequence number to the unacknowledge sequence number. If
- * there is still outstanding, unacknowledged data, then this will
- * be beyond ackseq.
- */
-
- sndseq = tcp_getsequence(conn->sndseq);
- if (TCP_SEQ_LT(sndseq, ackseq))
+#ifdef CONFIG_NET_SENDFILE
+ if (!conn->sendfile)
+#endif
{
- ninfo("sndseq: %08" PRIx32 "->%08" PRIx32
- " unackseq: %08" PRIx32 " new tx_unacked: %" PRId32 "\n",
- tcp_getsequence(conn->sndseq), ackseq, unackseq,
- (uint32_t)conn->tx_unacked);
- tcp_setsequence(conn->sndseq, ackseq);
+ /* Update sequence number to the unacknowledge sequence number. If
+ * there is still outstanding, unacknowledged data, then this will
+ * be beyond ackseq.
+ */
+
+ uint32_t sndseq = tcp_getsequence(conn->sndseq);
+ if (TCP_SEQ_LT(sndseq, ackseq))
+ {
+ ninfo("sndseq: %08" PRIx32 "->%08" PRIx32
+ " unackseq: %08" PRIx32 " new tx_unacked: %" PRId32 "\n",
Review comment:
Done.
--
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]