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

non-allocating recv_into! (feature request)? #57029

Open
tt1234567 opened this issue Jan 13, 2025 · 1 comment
Open

non-allocating recv_into! (feature request)? #57029

tt1234567 opened this issue Jan 13, 2025 · 1 comment
Labels
feature Indicates new feature / enhancement requests sockets

Comments

@tt1234567
Copy link

Hello, I'm not sure if this is the right place to ask, but would it be possible to provide a recv_into! method for reading from a UDP socket directly into an existing buffer? I'm reading a stream of data via UDP and using recv allocates so much that the garbage collector activity causes packets to be lost. I think Python has something like this.

I did try asking on Discourse some time ago but didn't get very far see here

@inkydragon inkydragon added feature Indicates new feature / enhancement requests sockets labels Jan 15, 2025
@notthetup
Copy link
Contributor

This would be useful for me as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new feature / enhancement requests sockets
Projects
None yet
Development

No branches or pull requests

3 participants