Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Fiber pool not being use for nested Rack apps? #10

@eliaslevy

Description

@eliaslevy

Maybe I am being thick, but I think the following should work:

app = Rack::Builder.new do
use( Rack::FiberPool, :size => 50 )
map( '/app1' ) { call app1 }
map( '/app2' ) { call app2 }
end

Alas, it doesn't. The pool size limit is not applied to either app1 or app2. It seems I must call use( Rack::FiberPool, :size => 50 ) within each map block, which will create two different fiber pools, rather than a single one for all requests.

Is this expected? I am not understanding how Rack Builder work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions