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

HTTP Server should allow custom concurrency models #13428

Merged
merged 1 commit into from
May 6, 2023

Commits on May 4, 2023

  1. HTTP Server should allow custom concurrency models

    Splitting out this function makes it simple to implement a custom HTTP::Server using a Fiber pool
    i.e.
    
    ```crystal
    require "fiberpool"
    
    class MyServer < HTTP::Server
      @my_pool : FiberPool = FiberPool.new(200)
    
      protected def dispatch(io)
        @my_pool.run { handle_client(io) }
      end
    end
    ```
    
    for example
    stakach authored May 4, 2023
    Configuration menu
    Copy the full SHA
    734857e View commit details
    Browse the repository at this point in the history