Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【TCP Direct】zft_send_single without sleep loop failed #5

Open
1990liangxll opened this issue Apr 15, 2024 · 0 comments
Open

【TCP Direct】zft_send_single without sleep loop failed #5

1990liangxll opened this issue Apr 15, 2024 · 0 comments

Comments

@1990liangxll
Copy link

I am using tcp-direct technology to optimize my client program.

When sending a request every 100 nanoseconds or more, everything is normal.

But when calling the zft_send_single interface without sleep to send a request, only a few dozen packets can be successfully sent out.

Using Wireshark to capture packets, a large number of 【TCP-Retransmission】and 【TCP Out-Of-Order】 packets appear.

At the same time as the request, I also called ztf_send_space to query available space in the send queue, After sending dozens of packets, the available buffer keeps decreasing to 0, and then the program crashes。

My question:

How to use TCP direct technology to achieve continuous data transmission without sleep? I have used the ztf_send_space interface to query available space in the send queue, but the buffer will not recover until the program crashes.

Please help me, this problem has been bothering me for two weeks now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant