-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Why doesn't Protocol use app.config to get its settings #1796
Comments
That's a valid question. IMHO it should respect the config given by the developer (from |
I suppose this could be removed in a future PR if anyone doesn't have objections to that. The APIs affected by this seem to be internal, as app methods such as |
@Tronic to answer your question, the reason Protocol doesn't use app.config is simple, the If someone could take it upon themselves to refactor it to use |
That should now be sorted out. It's a large and quickly done patch, though, so I would suggest careful review. I did not remove the loop arguments because that would require more work and has potential to break apps that do weird things with multiple loops. |
Sanic passes all settings such as
REQUEST_MAX_SIZE
as arguments via a chain of functions fromrun_server
toProtocol
constructor, rather than accessing them viaapp.config
where needed. Is there a purpose to this?The text was updated successfully, but these errors were encountered: