You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working with an async PSGI server. And i've been running into troubles with Plack::App::Cascade. I am not sure but I think that using $done (https://github.com/plack/Plack/blob/master/lib/Plack/App/Cascade.pm#L58) within the iteration is not correct. Because it requires that $respond_wrapped is called immediatly (https://github.com/plack/Plack/blob/master/lib/Plack/App/Cascade.pm#L54) and I think the spec is not requireing this, right? At least my Async PSGI implementation is not calling it immediately, but waits till the Application has fulfilled the request.
IMHO Cascade.pm needs to wait until the application is really done with the request. This is my "hack" that might solve this issue:
Hi,
I've been working with an async PSGI server. And i've been running into troubles with
Plack::App::Cascade
. I am not sure but I think that using$done
(https://github.com/plack/Plack/blob/master/lib/Plack/App/Cascade.pm#L58) within the iteration is not correct. Because it requires that$respond_wrapped
is called immediatly (https://github.com/plack/Plack/blob/master/lib/Plack/App/Cascade.pm#L54) and I think the spec is not requireing this, right? At least my Async PSGI implementation is not calling it immediately, but waits till the Application has fulfilled the request.IMHO Cascade.pm needs to wait until the application is really done with the request. This is my "hack" that might solve this issue:
The text was updated successfully, but these errors were encountered: