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

Fix ownership on 'NextCallback' #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

arteymix
Copy link
Member

One big drawback of not passing the 'NextCallback' ownership forward is that it cannot be called after the callee has returned (e.g. in a thread or asynchronously).

In the short-term, this is going to be really convenient to use threads for processing requests. It is necessary to build a threading middleware that would dispatch requests handling in a pool.

It's still bugging with the context being null, so there's some investigation to be performed.

@arteymix arteymix added this to the 0.3.0 milestone Aug 27, 2016
@arteymix arteymix modified the milestone: 0.3.0 Oct 23, 2016
@arteymix arteymix modified the milestone: 0.4.0 Nov 18, 2016
One big drawback of not passing the 'NextCallback' ownership forward is
that it cannot be called after the callee has returned (e.g. in a thread
or asynchronously). Make it owned across the whole 'perform_routing'
recursion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant