Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Questions about controller lifecycle #57

Closed
wolfgangmeyers opened this issue May 20, 2016 · 4 comments
Closed

Questions about controller lifecycle #57

wolfgangmeyers opened this issue May 20, 2016 · 4 comments

Comments

@wolfgangmeyers
Copy link

I'm curious how the controller lifecycle works. Does a new instance of controller get created on every request? If not, how is the t.Ctx field made threadsafe between different concurrent requests?

@wolfgangmeyers
Copy link
Author

@gernest ?

@wolfgangmeyers
Copy link
Author

Also if this is something that needs to be changed, I'd be happy to help.

@gernest
Copy link
Owner

gernest commented Jun 3, 2016

@wolfgangmeyers sorry for the late reply. There is a lot of work needed for utron, and maybe a rewrite on some on the components.

I would really love to see someone look into this. If you don't mind we can discuss this, and see what we can do about it. I really need help here, I mean someone who will see things in a different perspective.

@gernest gernest mentioned this issue Oct 25, 2016
@gernest
Copy link
Owner

gernest commented Oct 27, 2016

@wolfgangmeyers I just revisited this after #67 . So now a new controller is created on every request to avoid the race conditions.

@gernest gernest closed this as completed Oct 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants