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

add http server example with io_uring #570

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

janondrusek
Copy link
Contributor

basic building blocks are coroutines, async_scope and Stream

  • single threaded
  • only supports GET
  • serves static <html> on port 8080, both IPv4 and IPv6
  • shuts down after 1000ms by default
  • stress tested via ab -c 512 -n $((8*4096)) http://localhost:8080/

image

@janondrusek janondrusek added the documentation Improvements or additions to documentation label Oct 18, 2023
Copy link
Contributor

@ispeters ispeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it!

examples/linux/http_server_io_uring_test.cpp Outdated Show resolved Hide resolved
basic building blocks are coroutines, `async_scope` and _Stream_

* single threaded
* only supports `GET`
* serves static `<html>` on port `8080`, both IPv4 and IPv6
* shuts down after 1000ms by default
* stress tested via `ab -c 512 -n $((8*4096)) http://localhost:8080/`
@janondrusek janondrusek merged commit c4f4194 into facebookexperimental:main Oct 18, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants