4 ms·
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
by benchaney 10y ago
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.
- gmazza 10y ago> 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);
- astrobe_ 10y agoI guess that select() already had a meaning so it couldn't be used for this?
- wyldfire 10y agoYou 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.