pkarashchenko commented on a change in pull request #5311:
URL: https://github.com/apache/incubator-nuttx/pull/5311#discussion_r790061835



##########
File path: net/tcp/tcp_sendfile.c
##########
@@ -242,13 +252,14 @@ static uint16_t sendfile_eventhandler(FAR struct 
net_driver_s *dev,
         }
 #endif /* CONFIG_NET_IPv4 */
 
-      /* The current acknowledgement number number is the (relative) offset
+      /* The current acknowledgement number is the (relative) offset
        * of the of the next byte needed by the receiver.  The snd_isn is the
        * offset of the first byte to send to the receiver.  The difference
        * is the number of bytes to be acknowledged.
        */
 
-      pstate->snd_acked = TCP_SEQ_SUB(tcp_getsequence(tcp->ackno),
+      ackno = tcp_getsequence(tcp->ackno);
+      pstate->snd_acked = TCP_SEQ_SUB(ackno,

Review comment:
       no. I mean make `pstate->snd_acked = TCP_SEQ_SUB(ackno, 
pstate->snd_isn);`




-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to