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

echo-sockmap and delays in ebpf setup #43

Open
DuratarskeyK opened this issue Dec 29, 2021 · 0 comments
Open

echo-sockmap and delays in ebpf setup #43

DuratarskeyK opened this issue Dec 29, 2021 · 0 comments

Comments

@DuratarskeyK
Copy link

I found this example for ebpf sockmap and tried to write my own thing, but multi-threaded, though it's irrelevant, since the problem is not there. When adding a socket to sockmap that already had data sent to it, it doesn't work. You can see it for yourself with your example, if you add sleep(2) here:
https://github.com/cloudflare/cloudflare-blog/blob/master/2019-02-tcp-splice/echo-sockmap.c#L132
And then do echo Hello | nc wherever-echo-server-is-listening port
I wonder if there is a simple way to fix this, but so far I couldn't find it, I'm hoping you can help, as I don't even know where else to ask about eBPF issues.

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