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

Use sendfile() in PollMessages for TCP #631

Open
hubcio opened this issue Feb 1, 2024 · 2 comments
Open

Use sendfile() in PollMessages for TCP #631

hubcio opened this issue Feb 1, 2024 · 2 comments
Labels
good first issue Good for newcomers server iggy-servere related change

Comments

@hubcio
Copy link
Collaborator

hubcio commented Feb 1, 2024

This is supported only on Linux.

@hubcio hubcio added good first issue Good for newcomers server iggy-servere related change labels Feb 1, 2024
@iamazy
Copy link

iamazy commented Mar 1, 2024

Hi, @hubcio
I'm unfamiliar with the usage of sendfile and would like to inquire how to read bytes from a file into Vec using sendfile

@hubcio
Copy link
Collaborator Author

hubcio commented Mar 1, 2024

@iamazy unfortunately, this API is blocking so it'll be pain in the ass to do it in tokio. we'd have to implement separate thread pool or use tokio::block_on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers server iggy-servere related change
Projects
None yet
Development

No branches or pull requests

2 participants