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

This is more a question than anything else #5

Open
Giszpenc opened this issue Apr 28, 2022 · 1 comment
Open

This is more a question than anything else #5

Giszpenc opened this issue Apr 28, 2022 · 1 comment

Comments

@Giszpenc
Copy link

I tried using your code and it worked fine until I changed it to work with my real data and found that I was losing packets. In my scenario, I work with devices listening on some port. I send a request on the broadcast ip (255.255.255.255) on that port and wait for each device to say hello back (on my desktop) same port. So I am mixing a client and server in one which might be a threading problem. This works with a couple of devices but with a couple hundred devices, I am losing many responses.

I am curious if you are planning to use System.IO.Pipelines. It seems that it might be faster at consuming data off the wire and adding it to be consumed by a reader later when it is ready.

@sgf
Copy link

sgf commented Aug 11, 2024

Pipelines are not really suitable for UDP. If you are experiencing packet loss, then you should consider looking into an R-UDP protocol. Or implementing your own.

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

2 participants