Re:Why is my tcp not reliable? (2009)
by benchaney on Saturday April 01, 2017 @08:34PM
(#14015005)
I've always thought that this is ridiculous. Once a TCP socket reports that data has been sent, it should continue working to send it until every bytes has been acked (with the exception of an unrecoverable failure case). Also, I wish there were an API to detect how much data still hasn't been acked.
[ Parent
| on HN ]
> I wish there were an API to detect how much data still hasn't been acked.
From example code attached to the original article (Linux only):
int outstanding;
ioctl(fd, SIOCOUTQ, &outstanding);You have to be pretty careful about what conclusions you draw from this info. It means relatively little about what your actual peer has seen. It tells you a some info about the channel between you and your peer, though.
If you need detailed feedback, you need to implement a feature that closes the loop.