Permalink
Commits on Jun 16, 2011
  1. one possibility to fix reload using Django 'un_gunicorn' command with

    manage.py would be to consider that reload == reexec. So we are making
    sure we reload all modules. But with this solution the process id will
    change and some supervisor may not be abble to detect the change if they
    aren't using the pidfile. (In other word we should strongly advise
    people to use gunicorn_django command if they want HUP support.)
    benoitc committed Jun 16, 2011
Commits on Jun 15, 2011
  1. Disable attempt at reloading Django modules.

    This appears to be causing errors in user code so we decided
    to disable it until we can find a cause or better method for
    reloading Django.
    davisp committed Jun 15, 2011
  2. Fix bug in Arbiter.manage_workers.

    My fix yesterday was broken when sorting workers. Thanks to
    Sabin Iacob for the report.
    davisp committed Jun 15, 2011
Commits on Jun 14, 2011
  1. Avoid race condition in dict iteration.

    Its possible that when iterating Arbiter.WORKERS in manage_workers we
    get interupted to handle a SIGCHLD which will pop the child PID from
    the dict which results in a "dict changed size while iterating
    error. Reported on IRC. Simple fix is to just copy the dict into a
    list that we iterate.
    davisp committed Jun 14, 2011
Commits on Jun 6, 2011
  1. Fixed Tornado worker exiting.

    Thanks to Masahiro Nakagawa for the report and patch.
    
    Fixes #216
    davisp committed Jun 6, 2011
Commits on Jun 2, 2011
Commits on May 18, 2011
  1. update doc

    benoitc committed May 18, 2011
Commits on May 11, 2011
  1. add Michael Schurter to THANKS

    benoitc committed May 11, 2011
  2. Remove unneeded lambda

    schmichael committed with benoitc Apr 3, 2011
  3. fix import.

    benoitc committed May 11, 2011
  4. add missing GeventWSGIWorker

    benoitc committed May 11, 2011
  5. add Denis Bilenko to the thanks

    benoitc committed May 11, 2011
  6. fix typo catched by pyflakes

    denis committed with benoitc May 11, 2011
  7. fix compatibility with gevent 0.14 dev version

    Move "import gevent.wsgi" into a separate module, which is not
    imported if pywsgi worker is requested. (The gevent.wsgi currently
    not provided by gevent trunk but pywsgi works fine.)
    denis committed with benoitc May 11, 2011
  8. i hate my kbd. Real fix

    benoitc committed May 3, 2011
  9. fix fbsd support

    benoitc committed May 3, 2011
  10. useless debug info

    benoitc committed Apr 30, 2011
  11. after multiple attempts it's easier to just reload the app. People using

    mange.py have to use USR2 signal if they want to upgrade the django
    version instread of HUP. On the other hand, upgrading django version
    with HUP is possible with gunicorn_django command.
    benoitc committed Apr 30, 2011
  12. Fixed typo in deploy docs.

    davisp committed with benoitc Apr 28, 2011
  13. Regenerate site content.

    davisp committed with benoitc Apr 27, 2011
  14. Fix hook function names.

    The names were being rendered into the online docs and
    causing confusion.
    davisp committed with benoitc Apr 27, 2011
  15. Empty chunks incorrectly signal end of response.

    If an app iterator attempts to send an empty string to the client
    while using chunked transfer encoding it incorrectly signals the
    end of the transfer. This patch just ignores empty strings that
    are yielded by the application.
    davisp committed with benoitc Apr 27, 2011
Commits on Apr 25, 2011
  1. Use the newer cpu_count method in docs.

    Updated docs to show the use of the cpu_count function in the
    multiprocessing module.
    
    Thanks to Fabian Topfstedt for the update.
    
    Fixes #202
    davisp committed Apr 25, 2011
Commits on Apr 24, 2011
  1. fix issue #195. Thanks!

    b3no committed Apr 24, 2011
  2. django manage.py load settings before we launch every worker. This

    change remove it from loaded modules on reload. While we are here we
    remove any django module preloaded so we can upgrade django version to
    on HUP. fix issue #197.
    b3no committed Apr 24, 2011
Commits on Apr 23, 2011
  1. oups typo

    b3no committed Apr 23, 2011
  2. typo

    b3no committed Apr 23, 2011
Commits on Apr 19, 2011
  1. Fixed --pid option in deploy docs.

    Thanks to Miguel Araujo for spotting it.
    
    Fixes #198
    davisp committed Apr 19, 2011