net/tcp/sendfile: notify the device driver of the availability of TX data on TCP retransmission

(as well as on sending normal TCP packets).
This commit is contained in:
Alexander Lunev 2022-01-25 19:48:26 +03:00 committed by Xiang Xiao
parent 7e748e63dd
commit 8be9cb9f72

View File

@ -307,6 +307,10 @@ static uint16_t sendfile_eventhandler(FAR struct net_driver_s *dev,
dev->d_sndlen = sndlen;
/* Notify the device driver of the availability of TX data */
tcp_send_txnotify(psock, conn);
/* Continue waiting */
return flags;