Comments (17)
👍
from chaussette.
@gawry Are you interested in providing the backend ?
from chaussette.
It looks that simple:
https://gist.github.com/jonashaag/6548722
import bjoern
class Server(object):
def __init__(self, listener, application=None, backlog=None,
socket_type=None, address_family=None):
assert backlog is None, "bjoern backend does not support the 'backlog' option"
assert socket_type is None, "bjoern backend does not support the 'socket_type' option"
assert address_family in (AF_INET, AF_UNIX)
host, port = listener
if host.startswith('fd://'):
raise ValueError("bjoern backend does not support 'fd://' sockets")
else:
bjoern.listen(host, port, application)
def serve_forever(self):
bjoern.run()
from chaussette.
@Natim would you like to add it in a PR ?
from chaussette.
I will as soon as bjoern implements the --fd parameter.
from chaussette.
refs jonashaag/bjoern#73
from chaussette.
It looks like it will be implemented in the next release.
from chaussette.
bump -- fd support is now implemented in the master branch
from chaussette.
Great news!
On Wednesday, January 1, 2014, Jonas Haag wrote:
bump -- fd support is now implemented in the master branch
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-31423948
.
- Gustavo Gawryszewski [email protected] [email protected] +55
21 4106-0075 | +55 21 9498-7923 www.tactio.com.br
http://www.tactio.com.br/ *
As informações existentes nessa mensagem e nos arquivos anexados são para
uso restrito, sendo seu sigilo protegido por lei. Caso não seja
destinatário, saiba que leitura, divulgação ou cópia são proibidas. Favor
apagar as informações e notificar o remetente. O uso impróprio será tratado
conforme as normas da empresa e a legislação em vigor.
Antes de imprimir este e-mail/documento, pense em seu compromisso com o
Meio Ambiente
from chaussette.
@jonashaag @gawry awesome!
We should add it then for 1.2
from chaussette.
I did a first version but I was unable to properly test it because the bjoern version compatible with fd was not actually ready.
As I have no experience with c and c python modules I can't help @jonashaag finishing things like the proper setup.py, but I will send a pull request when this is ready.
from chaussette.
It can be tested by cloning the git repository and using make
, then adding the build/
directory to your PYTHONPATH
.
from chaussette.
I added this PR in the bjoern repo: jonashaag/bjoern#80
from chaussette.
Started a PR for chaussette with the Bjoern backend https://github.com/mozilla-services/chaussette/tree/bjoern
from chaussette.
Added!
from chaussette.
Test are broken since because on the bjoern install ev.h fails to be found by travis. Not sure if it is a libev-dev missing package or an ev.h missing file on bjoern source code.
from chaussette.
Thanks a lot :)
from chaussette.
Related Issues (20)
- errors thrown by backends or chaussette enter infinite loop HOT 5
- Chaussette does not log requests HOT 1
- Thread Exception when running Chaussette with gevent backend on a Django1.6 wsgi app HOT 18
- custom backend config HOT 4
- Add a -t --timeout option to let chaussette die if the request took more than TIMEOUT seconds. HOT 1
- Support graceful shutdown HOT 2
- SocketIO backend seems broken with latest version of gevent-socketio ('Server' object has no attribute 'config') HOT 7
- Chaussette vs. G-event+Redis (?!) HOT 6
- Need to add tornado in the docs
- waitress compat broken HOT 2
- File descriptors don't seemed to be closed after deletion HOT 3
- Cannot SIGTERM chaussette
- The --python-path argument doesn't do anything
- Non-ascii URL errors HOT 1
- Chaussette does not work anymore with waitress v1.0.0 HOT 4
- Raise the test coverage to 90%+
- Enable Bjoern in Python 3
- Chaussette under python3.6 can't discover gevent backend
- chaussette does not work with waitress > 0.9
- maintainership HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaussette.