Zero copy send and close behavior related to second notification #1465
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 |
Beta Was this translation helpful? Give feedback.
-
|
I wonder if |
Beta Was this translation helpful? Give feedback.
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
Beta Was this translation helpful? Give feedback.
All reactions