Code Monkey home page Code Monkey logo

Comments (17)

tarekziade avatar tarekziade commented on August 26, 2024

👍

from chaussette.

tarekziade avatar tarekziade commented on August 26, 2024

@gawry Are you interested in providing the backend ?

from chaussette.

Natim avatar Natim commented on August 26, 2024

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.

tarekziade avatar tarekziade commented on August 26, 2024

@Natim would you like to add it in a PR ?

from chaussette.

Natim avatar Natim commented on August 26, 2024

I will as soon as bjoern implements the --fd parameter.

from chaussette.

tarekziade avatar tarekziade commented on August 26, 2024

refs jonashaag/bjoern#73

from chaussette.

Natim avatar Natim commented on August 26, 2024

It looks like it will be implemented in the next release.

from chaussette.

jonashaag avatar jonashaag commented on August 26, 2024

bump -- fd support is now implemented in the master branch

from chaussette.

gawry avatar gawry commented on August 26, 2024

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
.

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.

tarekziade avatar tarekziade commented on August 26, 2024

@jonashaag @gawry awesome!

We should add it then for 1.2

from chaussette.

gawry avatar gawry commented on August 26, 2024

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.

jonashaag avatar jonashaag commented on August 26, 2024

It can be tested by cloning the git repository and using make, then adding the build/ directory to your PYTHONPATH.

from chaussette.

tarekziade avatar tarekziade commented on August 26, 2024

I added this PR in the bjoern repo: jonashaag/bjoern#80

from chaussette.

tarekziade avatar tarekziade commented on August 26, 2024

Started a PR for chaussette with the Bjoern backend https://github.com/mozilla-services/chaussette/tree/bjoern

from chaussette.

tarekziade avatar tarekziade commented on August 26, 2024

Added!

from chaussette.

Natim avatar Natim commented on August 26, 2024

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.

Natim avatar Natim commented on August 26, 2024

Thanks a lot :)

from chaussette.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.