Zero copy send and close behavior related to second notification #1465
Unanswered
normanmaurer
asked this question in
Q&A
Replies: 2 comments 7 replies
|
Ok after some digging it turned out that at some point I will see the notification. It's just that it takes forever by default. You can change this by setting a more sane and smaller value via TCP_USER_TIMEOUT. I also added some test case for this in our integration: netty/netty#15709 |
1 reply
|
I wonder if |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a question related to zero copy send (send_zc) and close and the buffer management.
So I ran into the situation where a send_zc was done and I received the first notification with the result and the more flag set. All good so far... I know I will get another notification once I can reuse the buffer again..
Now the remote peer never reads and so I never receive a TCP ack (it seams) which means I never receive the second notification (and so the buffer can not be reused). After a while I close the socket (the remote peer still did not read) for which I receive the notification but I never receive the second notification for the previous send_zc. Which brings me the question what I am supposed to do now ? Shouldn't the close also somehow trigger the second notification for the send and so let me reuse the buffer ?
Tagging @isilence as told by @axboe
All reactions