http://readthedocs.org/docs/waitress/en/latest/
http://pypi.python.org/pypi/waitress/0.2
This will be an improvement over the status quo. We are currently
forced to use wsgiref in 1.3 (which is single-threaded and not suitable
for production) because it's the only standalone pure-Python web server
that will run under both Python 2 and Python 3. Waitress isn't exactly
a speed demon, but it's suitable for both development and production,
and runs on all the platforms we care about.
- C
"getting this error"
My best guess. You have this:
egg:waitress#wsgiref
Instead of:
egg:waitress#main
In some .ini file. But who knows.
For example, I use gunicorn for development and production, so there is
no reason to make that decision for me and include a separate webserver.
If Pyramid starts shipping with a production ready webserver that is
giving the impression that the pylons project will be
supporting/maintaining/improving that webserver. Is that something you
want?
I think the goal is something that won't just fold over in production. wsgiref is single threaded and in just no way capable of being deployed. This way if someone deploys it without knowing any better they at least have a chance.
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
On Dec 31, 2011 4:41 PM, "John Anderson" <son...@gmail.com> wrote:
So what is the reasoning behind needing a production ready webserver
included with the framework by default? Couldn't we just include
something lightweight that works for development and allow people to
make their own decision on what webserver they would like to use?
I think the goal is something that won't just fold over in production. wsgiref is single threaded and in just no way capable of being deployed. This way if someone deploys it without knowing any better they at least have a chance.
I wrote the server partly so I wouldn't have to write that
documentation, because keeping it in sync as the world turns is a losing
battle. Not that I probably won't have to write it anyway, but, at
least if I do, I'll be able to put it in the Cookbook, where it doesn't
matter too much when it's immediately out of date.
> Similar to how they have to choose a template engine, orm, form
> library, etc.
Note that only the scaffolding will depend on waitress, so I think this
is consistent. Scaffolding is all about making these sorts of choices.
There's really no other standalone server except wsgiref that works
across the platforms we need to support, and wsgiref blows; it's totally
unsuitable for any sort of production system. It'd be a special kind of
hell to specialize scaffolding rendering per-platform to choose "the
best" server for that platform.
- C
It essentially brings us back to the status quo ante, which was
PasteHTTPServer. How does Waitress compare to it, and is it
mullti-threaded too?
--
Mike Orr <slugg...@gmail.com>
Sorry, I meant the status quot in 1.3, which is is wsgiref.
> How does Waitress compare to it, and is it
> mullti-threaded too?
It's about the same performance and feature wise (except no SSL).
Multithreaded, yes.
- C