Skip to content
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

Initial Update #1

Merged
merged 3 commits into from
Jan 22, 2018
Merged

Initial Update #1

merged 3 commits into from
Jan 22, 2018

Conversation

pyup-bot
Copy link
Collaborator

This is my first visit to this fine repo so I have bundled all updates in a single pull request to make things easier for you to merge.

Close this pull request and delete the branch if you want me to start with single pull requests right away

Here's the executive summary:

Updates

Here's a list of all the updates bundled in this pull request. I've added some links to make it easier for you to find all the information you need.

Flask 0.12.2 » 0.12.2 PyPI | Changelog | Repo
gunicorn 19.7.1 » 19.7.1 PyPI | Changelog | Homepage
requests 2.18.4 » 2.18.4 PyPI | Changelog | Homepage

Changelogs

Flask -> 0.12.2

0.12.2


Released on May 16 2017

  • Fix a bug in safe_join on Windows.

0.12.1


Bugfix release, released on March 31st 2017

  • Prevent flask run from showing a NoAppException when an ImportError occurs
    within the imported application module.
  • Fix encoding behavior of app.config.from_pyfile for Python 3. Fix
    2118.
  • Use the SERVER_NAME config if it is present as default values for
    app.run. 2109, 2152
  • Call ctx.auto_pop with the exception object instead of None, in the
    event that a BaseException such as KeyboardInterrupt is raised in a
    request handler.

0.12


Released on December 21st 2016, codename Punsch.

  • the cli command now responds to --version.
  • Mimetype guessing and ETag generation for file-like objects in send_file
    has been removed, as per issue 104. See pull request 1849.
  • Mimetype guessing in send_file now fails loudly and doesn't fall back to
    application/octet-stream. See pull request 1988.
  • Make flask.safe_join able to join multiple paths like os.path.join
    (pull request 1730).
  • Revert a behavior change that made the dev server crash instead of returning
    a Internal Server Error (pull request 2006).
  • Correctly invoke response handlers for both regular request dispatching as
    well as error handlers.
  • Disable logger propagation by default for the app logger.
  • Add support for range requests in send_file.
  • app.test_client includes preset default environment, which can now be
    directly set, instead of per client.get.

0.11.2


Bugfix release, unreleased

  • Fix crash when running under PyPy3, see pull request 1814.

0.11.1


Bugfix release, released on June 7th 2016.

  • Fixed a bug that prevented FLASK_APP=foobar/__init__.py from working. See
    pull request 1872.

0.11


Released on May 29th 2016, codename Absinthe.

  • Added support to serializing top-level arrays to :func:flask.jsonify. This
    introduces a security risk in ancient browsers. See
    :ref:json-security for details.
  • Added before_render_template signal.
  • Added **kwargs to :meth:flask.Test.test_client to support passing
    additional keyword arguments to the constructor of
    :attr:flask.Flask.test_client_class.
  • Added SESSION_REFRESH_EACH_REQUEST config key that controls the
    set-cookie behavior. If set to True a permanent session will be
    refreshed each request and get their lifetime extended, if set to
    False it will only be modified if the session actually modifies.
    Non permanent sessions are not affected by this and will always
    expire if the browser window closes.
  • Made Flask support custom JSON mimetypes for incoming data.
  • Added support for returning tuples in the form (response, headers)
    from a view function.
  • Added :meth:flask.Config.from_json.
  • Added :attr:flask.Flask.config_class.
  • Added :meth:flask.Config.get_namespace.
  • Templates are no longer automatically reloaded outside of debug mode. This
    can be configured with the new TEMPLATES_AUTO_RELOAD config key.
  • Added a workaround for a limitation in Python 3.3's namespace loader.
  • Added support for explicit root paths when using Python 3.3's namespace
    packages.
  • Added :command:flask and the flask.cli module to start the local
    debug server through the click CLI system. This is recommended over the old
    flask.run() method as it works faster and more reliable due to a
    different design and also replaces Flask-Script.
  • Error handlers that match specific classes are now checked first,
    thereby allowing catching exceptions that are subclasses of HTTP
    exceptions (in werkzeug.exceptions). This makes it possible
    for an extension author to create exceptions that will by default
    result in the HTTP error of their choosing, but may be caught with
    a custom error handler if desired.
  • Added :meth:flask.Config.from_mapping.
  • Flask will now log by default even if debug is disabled. The log format is
    now hardcoded but the default log handling can be disabled through the
    LOGGER_HANDLER_POLICY configuration key.
  • Removed deprecated module functionality.
  • Added the EXPLAIN_TEMPLATE_LOADING config flag which when enabled will
    instruct Flask to explain how it locates templates. This should help
    users debug when the wrong templates are loaded.
  • Enforce blueprint handling in the order they were registered for template
    loading.
  • Ported test suite to py.test.
  • Deprecated request.json in favour of request.get_json().
  • Add "pretty" and "compressed" separators definitions in jsonify() method.
    Reduces JSON response size when JSONIFY_PRETTYPRINT_REGULAR=False by removing
    unnecessary white space included by default after separators.
  • JSON responses are now terminated with a newline character, because it is a
    convention that UNIX text files end with a newline and some clients don't
    deal well when this newline is missing. See
    Add JSONIFY_END_WITH_NEWLINE config variable pallets/flask#1262 -- this came up originally as a
    part of https://github.com/kennethreitz/httpbin/issues/168
  • The automatically provided OPTIONS method is now correctly disabled if
    the user registered an overriding rule with the lowercase-version
    options (issue 1288).
  • flask.json.jsonify now supports the datetime.date type (pull request
    1326).
  • Don't leak exception info of already catched exceptions to context teardown
    handlers (pull request 1393).
  • Allow custom Jinja environment subclasses (pull request 1422).
  • flask.g now has pop() and setdefault methods.
  • Turn on autoescape for flask.templating.render_template_string by default
    (pull request 1515).
  • flask.ext is now deprecated (pull request 1484).
  • send_from_directory now raises BadRequest if the filename is invalid on
    the server OS (pull request 1763).
  • Added the JSONIFY_MIMETYPE configuration variable (pull request 1728).
  • Exceptions during teardown handling will no longer leave bad application
    contexts lingering around.

0.10.2


(bugfix release, release date to be announced)

  • Fixed broken test_appcontext_signals() test case.
  • Raise an :exc:AttributeError in :func:flask.helpers.find_package with a
    useful message explaining why it is raised when a PEP 302 import hook is used
    without an is_package() method.
  • Fixed an issue causing exceptions raised before entering a request or app
    context to be passed to teardown handlers.
  • Fixed an issue with query parameters getting removed from requests in
    the test client when absolute URLs were requested.
  • Made before_first_request into a decorator as intended.
  • Fixed an etags bug when sending a file streams with a name.
  • Fixed send_from_directory not expanding to the application root path
    correctly.
  • Changed logic of before first request handlers to flip the flag after
    invoking. This will allow some uses that are potentially dangerous but
    should probably be permitted.
  • Fixed Python 3 bug when a handler from app.url_build_error_handlers
    reraises the BuildError.

0.10.1


(bugfix release, released on June 14th 2013)

  • Fixed an issue where |tojson was not quoting single quotes which
    made the filter not work properly in HTML attributes. Now it's
    possible to use that filter in single quoted attributes. This should
    make using that filter with angular.js easier.
  • Added support for byte strings back to the session system. This broke
    compatibility with the common case of people putting binary data for
    token verification into the session.
  • Fixed an issue where registering the same method twice for the same endpoint
    would trigger an exception incorrectly.

0.10


Released on June 13th 2013, codename Limoncello.

  • Changed default cookie serialization format from pickle to JSON to
    limit the impact an attacker can do if the secret key leaks. See
    :ref:upgrading-to-010 for more information.
  • Added template_test methods in addition to the already existing
    template_filter method family.
  • Added template_global methods in addition to the already existing
    template_filter method family.
  • Set the content-length header for x-sendfile.
  • tojson filter now does not escape script blocks in HTML5 parsers.
  • tojson used in templates is now safe by default due. This was
    allowed due to the different escaping behavior.
  • Flask will now raise an error if you attempt to register a new function
    on an already used endpoint.
  • Added wrapper module around simplejson and added default serialization
    of datetime objects. This allows much easier customization of how
    JSON is handled by Flask or any Flask extension.
  • Removed deprecated internal flask.session module alias. Use
    flask.sessions instead to get the session module. This is not to
    be confused with flask.session the session proxy.
  • Templates can now be rendered without request context. The behavior is
    slightly different as the request, session and g objects
    will not be available and blueprint's context processors are not
    called.
  • The config object is now available to the template as a real global and
    not through a context processor which makes it available even in imported
    templates by default.
  • Added an option to generate non-ascii encoded JSON which should result
    in less bytes being transmitted over the network. It's disabled by
    default to not cause confusion with existing libraries that might expect
    flask.json.dumps to return bytestrings by default.
  • flask.g is now stored on the app context instead of the request
    context.
  • flask.g now gained a get() method for not erroring out on non
    existing items.
  • flask.g now can be used with the in operator to see what's defined
    and it now is iterable and will yield all attributes stored.
  • flask.Flask.request_globals_class got renamed to
    flask.Flask.app_ctx_globals_class which is a better name to what it
    does since 0.10.
  • request, session and g are now also added as proxies to the template
    context which makes them available in imported templates. One has to be
    very careful with those though because usage outside of macros might
    cause caching.
  • Flask will no longer invoke the wrong error handlers if a proxy
    exception is passed through.
  • Added a workaround for chrome's cookies in localhost not working
    as intended with domain names.
  • Changed logic for picking defaults for cookie values from sessions
    to work better with Google Chrome.
  • Added message_flashed signal that simplifies flashing testing.
  • Added support for copying of request contexts for better working with
    greenlets.
  • Removed custom JSON HTTP exception subclasses. If you were relying on them
    you can reintroduce them again yourself trivially. Using them however is
    strongly discouraged as the interface was flawed.
  • Python requirements changed: requiring Python 2.6 or 2.7 now to prepare
    for Python 3.3 port.
  • Changed how the teardown system is informed about exceptions. This is now
    more reliable in case something handles an exception halfway through
    the error handling process.
  • Request context preservation in debug mode now keeps the exception
    information around which means that teardown handlers are able to
    distinguish error from success cases.
  • Added the JSONIFY_PRETTYPRINT_REGULAR configuration variable.
  • Flask now orders JSON keys by default to not trash HTTP caches due to
    different hash seeds between different workers.
  • Added appcontext_pushed and appcontext_popped signals.
  • The builtin run method now takes the SERVER_NAME into account when
    picking the default port to run on.
  • Added flask.request.get_json() as a replacement for the old
    flask.request.json property.

0.9


Released on July 1st 2012, codename Campari.

  • The :func:flask.Request.on_json_loading_failed now returns a JSON formatted
    response by default.
  • The :func:flask.url_for function now can generate anchors to the
    generated links.
  • The :func:flask.url_for function now can also explicitly generate
    URL rules specific to a given HTTP method.
  • Logger now only returns the debug log setting if it was not set
    explicitly.
  • Unregister a circular dependency between the WSGI environment and
    the request object when shutting down the request. This means that
    environ werkzeug.request will be None after the response was
    returned to the WSGI server but has the advantage that the garbage
    collector is not needed on CPython to tear down the request unless
    the user created circular dependencies themselves.
  • Session is now stored after callbacks so that if the session payload
    is stored in the session you can still modify it in an after
    request callback.
  • The :class:flask.Flask class will avoid importing the provided import name
    if it can (the required first parameter), to benefit tools which build Flask
    instances programmatically. The Flask class will fall back to using import
    on systems with custom module hooks, e.g. Google App Engine, or when the
    import name is inside a zip archive (usually a .egg) prior to Python 2.7.
  • Blueprints now have a decorator to add custom template filters application
    wide, :meth:flask.Blueprint.app_template_filter.
  • The Flask and Blueprint classes now have a non-decorator method for adding
    custom template filters application wide,
    :meth:flask.Flask.add_template_filter and
    :meth:flask.Blueprint.add_app_template_filter.
  • The :func:flask.get_flashed_messages function now allows rendering flashed
    message categories in separate blocks, through a category_filter
    argument.
  • The :meth:flask.Flask.run method now accepts None for host and port
    arguments, using default values when None. This allows for calling run
    using configuration values, e.g. app.run(app.config.get('MYHOST'), app.config.get('MYPORT')), with proper behavior whether or not a config
    file is provided.
  • The :meth:flask.render_template method now accepts a either an iterable of
    template names or a single template name. Previously, it only accepted a
    single template name. On an iterable, the first template found is rendered.
  • Added :meth:flask.Flask.app_context which works very similar to the
    request context but only provides access to the current application. This
    also adds support for URL generation without an active request context.
  • View functions can now return a tuple with the first instance being an
    instance of :class:flask.Response. This allows for returning
    jsonify(error="error msg"), 400 from a view function.
  • :class:~flask.Flask and :class:~flask.Blueprint now provide a
    :meth:~flask.Flask.get_send_file_max_age hook for subclasses to override
    behavior of serving static files from Flask when using
    :meth:flask.Flask.send_static_file (used for the default static file
    handler) and :func:~flask.helpers.send_file. This hook is provided a
    filename, which for example allows changing cache controls by file extension.
    The default max-age for send_file and static files can be configured
    through a new SEND_FILE_MAX_AGE_DEFAULT configuration variable, which is
    used in the default get_send_file_max_age implementation.
  • Fixed an assumption in sessions implementation which could break message
    flashing on sessions implementations which use external storage.
  • Changed the behavior of tuple return values from functions. They are no
    longer arguments to the response object, they now have a defined meaning.
  • Added :attr:flask.Flask.request_globals_class to allow a specific class to
    be used on creation of the :data:~flask.g instance of each request.
  • Added required_methods attribute to view functions to force-add methods
    on registration.
  • Added :func:flask.after_this_request.
  • Added :func:flask.stream_with_context and the ability to push contexts
    multiple times without producing unexpected behavior.

0.8.1


Bugfix release, released on July 1st 2012

  • Fixed an issue with the undocumented flask.session module to not
    work properly on Python 2.5. It should not be used but did cause
    some problems for package managers.

0.8


Released on September 29th 2011, codename Rakija

  • Refactored session support into a session interface so that
    the implementation of the sessions can be changed without
    having to override the Flask class.
  • Empty session cookies are now deleted properly automatically.
  • View functions can now opt out of getting the automatic
    OPTIONS implementation.
  • HTTP exceptions and Bad Request errors can now be trapped so that they
    show up normally in the traceback.
  • Flask in debug mode is now detecting some common problems and tries to
    warn you about them.
  • Flask in debug mode will now complain with an assertion error if a view
    was attached after the first request was handled. This gives earlier
    feedback when users forget to import view code ahead of time.
  • Added the ability to register callbacks that are only triggered once at
    the beginning of the first request. (:meth:Flask.before_first_request)
  • Malformed JSON data will now trigger a bad request HTTP exception instead
    of a value error which usually would result in a 500 internal server
    error if not handled. This is a backwards incompatible change.
  • Applications now not only have a root path where the resources and modules
    are located but also an instance path which is the designated place to
    drop files that are modified at runtime (uploads etc.). Also this is
    conceptually only instance depending and outside version control so it's
    the perfect place to put configuration files etc. For more information
    see :ref:instance-folders.
  • Added the APPLICATION_ROOT configuration variable.
  • Implemented :meth:~flask.testing.TestClient.session_transaction to
    easily modify sessions from the test environment.
  • Refactored test client internally. The APPLICATION_ROOT configuration
    variable as well as SERVER_NAME are now properly used by the test client
    as defaults.
  • Added :attr:flask.views.View.decorators to support simpler decorating of
    pluggable (class-based) views.
  • Fixed an issue where the test client if used with the "with" statement did not
    trigger the execution of the teardown handlers.
  • Added finer control over the session cookie parameters.
  • HEAD requests to a method view now automatically dispatch to the get
    method if no handler was implemented.
  • Implemented the virtual :mod:flask.ext package to import extensions from.
  • The context preservation on exceptions is now an integral component of
    Flask itself and no longer of the test client. This cleaned up some
    internal logic and lowers the odds of runaway request contexts in unittests.

0.7.3


Bugfix release, release date to be decided

  • Fixed the Jinja2 environment's list_templates method not returning the
    correct names when blueprints or modules were involved.

0.7.2


Bugfix release, released on July 6th 2011

  • Fixed an issue with URL processors not properly working on
    blueprints.

0.7.1


Bugfix release, released on June 29th 2011

  • Added missing future import that broke 2.5 compatibility.
  • Fixed an infinite redirect issue with blueprints.

0.7


Released on June 28th 2011, codename Grappa

  • Added :meth:~flask.Flask.make_default_options_response
    which can be used by subclasses to alter the default
    behavior for OPTIONS responses.
  • Unbound locals now raise a proper :exc:RuntimeError instead
    of an :exc:AttributeError.
  • Mimetype guessing and etag support based on file objects is now
    deprecated for :func:flask.send_file because it was unreliable.
    Pass filenames instead or attach your own etags and provide a
    proper mimetype by hand.
  • Static file handling for modules now requires the name of the
    static folder to be supplied explicitly. The previous autodetection
    was not reliable and caused issues on Google's App Engine. Until
    1.0 the old behavior will continue to work but issue dependency
    warnings.
  • fixed a problem for Flask to run on jython.
  • added a PROPAGATE_EXCEPTIONS configuration variable that can be
    used to flip the setting of exception propagation which previously
    was linked to DEBUG alone and is now linked to either DEBUG or
    TESTING.
  • Flask no longer internally depends on rules being added through the
    add_url_rule function and can now also accept regular werkzeug
    rules added to the url map.
  • Added an endpoint method to the flask application object which
    allows one to register a callback to an arbitrary endpoint with
    a decorator.
  • Use Last-Modified for static file sending instead of Date which
    was incorrectly introduced in 0.6.
  • Added create_jinja_loader to override the loader creation process.
  • Implemented a silent flag for config.from_pyfile.
  • Added teardown_request decorator, for functions that should run at the end
    of a request regardless of whether an exception occurred. Also the behavior
    for after_request was changed. It's now no longer executed when an exception
    is raised. See :ref:upgrading-to-new-teardown-handling
  • Implemented :func:flask.has_request_context
  • Deprecated init_jinja_globals. Override the
    :meth:~flask.Flask.create_jinja_environment method instead to
    achieve the same functionality.
  • Added :func:flask.safe_join
  • The automatic JSON request data unpacking now looks at the charset
    mimetype parameter.
  • Don't modify the session on :func:flask.get_flashed_messages if there
    are no messages in the session.
  • before_request handlers are now able to abort requests with errors.
  • it is not possible to define user exception handlers. That way you can
    provide custom error messages from a central hub for certain errors that
    might occur during request processing (for instance database connection
    errors, timeouts from remote resources etc.).
  • Blueprints can provide blueprint specific error handlers.
  • Implemented generic :ref:views (class-based views).

0.6.1


Bugfix release, released on December 31st 2010

  • Fixed an issue where the default OPTIONS response was
    not exposing all valid methods in the Allow header.
  • Jinja2 template loading syntax now allows "./" in front of
    a template load path. Previously this caused issues with
    module setups.
  • Fixed an issue where the subdomain setting for modules was
    ignored for the static folder.
  • Fixed a security problem that allowed clients to download arbitrary files
    if the host server was a windows based operating system and the client
    uses backslashes to escape the directory the files where exposed from.

0.6


Released on July 27th 2010, codename Whisky

  • after request functions are now called in reverse order of
    registration.
  • OPTIONS is now automatically implemented by Flask unless the
    application explicitly adds 'OPTIONS' as method to the URL rule.
    In this case no automatic OPTIONS handling kicks in.
  • static rules are now even in place if there is no static folder
    for the module. This was implemented to aid GAE which will
    remove the static folder if it's part of a mapping in the .yml
    file.
  • the :attr:~flask.Flask.config is now available in the templates
    as config.
  • context processors will no longer override values passed directly
    to the render function.
  • added the ability to limit the incoming request data with the
    new MAX_CONTENT_LENGTH configuration value.
  • the endpoint for the :meth:flask.Module.add_url_rule method
    is now optional to be consistent with the function of the
    same name on the application object.
  • added a :func:flask.make_response function that simplifies
    creating response object instances in views.
  • added signalling support based on blinker. This feature is currently
    optional and supposed to be used by extensions and applications. If
    you want to use it, make sure to have blinker_ installed.
  • refactored the way URL adapters are created. This process is now
    fully customizable with the :meth:~flask.Flask.create_url_adapter
    method.
  • modules can now register for a subdomain instead of just an URL
    prefix. This makes it possible to bind a whole module to a
    configurable subdomain.

.. _blinker: https://pypi.python.org/pypi/blinker

0.5.2


Bugfix Release, released on July 15th 2010

  • fixed another issue with loading templates from directories when
    modules were used.

0.5.1


Bugfix Release, released on July 6th 2010

  • fixes an issue with template loading from directories when modules
    where used.

0.5


Released on July 6th 2010, codename Calvados

  • fixed a bug with subdomains that was caused by the inability to
    specify the server name. The server name can now be set with
    the SERVER_NAME config key. This key is now also used to set
    the session cookie cross-subdomain wide.
  • autoescaping is no longer active for all templates. Instead it
    is only active for .html, .htm, .xml and .xhtml.
    Inside templates this behavior can be changed with the
    autoescape tag.
  • refactored Flask internally. It now consists of more than a
    single file.
  • :func:flask.send_file now emits etags and has the ability to
    do conditional responses builtin.
  • (temporarily) dropped support for zipped applications. This was a
    rarely used feature and led to some confusing behavior.
  • added support for per-package template and static-file directories.
  • removed support for create_jinja_loader which is no longer used
    in 0.5 due to the improved module support.
  • added a helper function to expose files from any directory.

0.4


Released on June 18th 2010, codename Rakia

  • added the ability to register application wide error handlers
    from modules.
  • :meth:~flask.Flask.after_request handlers are now also invoked
    if the request dies with an exception and an error handling page
    kicks in.
  • test client has not the ability to preserve the request context
    for a little longer. This can also be used to trigger custom
    requests that do not pop the request stack for testing.
  • because the Python standard library caches loggers, the name of
    the logger is configurable now to better support unittests.
  • added TESTING switch that can activate unittesting helpers.
  • the logger switches to DEBUG mode now if debug is enabled.

0.3.1


Bugfix release, released on May 28th 2010

  • fixed a error reporting bug with :meth:flask.Config.from_envvar
  • removed some unused code from flask
  • release does no longer include development leftover files (.git
    folder for themes, built documentation in zip and pdf file and
    some .pyc files)

0.3


Released on May 28th 2010, codename Schnaps

  • added support for categories for flashed messages.
  • the application now configures a :class:logging.Handler and will
    log request handling exceptions to that logger when not in debug
    mode. This makes it possible to receive mails on server errors
    for example.
  • added support for context binding that does not require the use of
    the with statement for playing in the console.
  • the request context is now available within the with statement making
    it possible to further push the request context or pop it.
  • added support for configurations.

0.2


Released on May 12th 2010, codename Jägermeister

  • various bugfixes
  • integrated JSON support
  • added :func:~flask.get_template_attribute helper function.
  • :meth:~flask.Flask.add_url_rule can now also register a
    view function.
  • refactored internal request dispatching.
  • server listens on 127.0.0.1 by default now to fix issues with chrome.
  • added external URL support.
  • added support for :func:~flask.send_file
  • module support and internal request handling refactoring
    to better support pluggable applications.
  • sessions can be set to be permanent now on a per-session basis.
  • better error reporting on missing secret keys.
  • added support for Google Appengine.

0.1


First public preview release.

gunicorn -> 19.7.1

19.7.1

===================

  • fix: continue if SO_REUSEPORT seems to be available but fails (:issue:1480)
  • fix: support non-decimal values for the umask command line option (:issue:1325)

19.7.0

===================

  • The previously deprecated gunicorn_django command has been removed.
    Use the :ref:gunicorn-cmd command-line interface instead.
  • The previously deprecated django_settings setting has been removed.
    Use the :ref:raw-env setting instead.
  • The default value of :ref:ssl-version has been changed from
    ssl.PROTOCOL_TLSv1 to ssl.PROTOCOL_SSLv23.
  • fix: initialize the group access list when initgroups is set (:issue:1297)
  • add environment variables to gunicorn access log format (:issue:1291)
  • add --paste-global-conf option (:issue:1304)
  • fix: print access logs to STDOUT (:issue:1184)
  • remove upper limit on max header size config (:issue:1313)
  • fix: print original exception on AppImportError (:issue:1334)
  • use SO_REUSEPORT if available (:issue:1344)
  • fix leak <https://github.com/benoitc/gunicorn/commit/b4c41481e2d5ef127199a4601417a6819053c3fd>_ of duplicate file descriptor for bound sockets.
  • add --reload-engine option, support inotify and other backends (:issue:1368, :issue:1459)
  • fix: reject request with invalid HTTP versions
  • add child_exit callback (:issue:1394)
  • add support for eventlets _AlreadyHandled object (:issue:1406)
  • format boot tracebacks properly with reloader (:issue:1408)
  • refactor socket activation and fd inheritance for better support of SystemD (:issue:1310)
  • fix: o fds are given by default in gunicorn (:issue:1423)
  • add ability to pass settings to GUNICORN_CMD_ARGS environment variable which helps in container world (:issue:1385)
  • fix: catch access denied to pid file (:issue:1091)
  • many additions and improvements to the documentation

Breaking Change
+++++++++++++++

  • Python 2.6.0 is the last supported version

19.6.0

===================

Core & Logging
++++++++++++++

  • improvement of the binary upgrade behaviour using USR2: remove file locking (:issue:1270)
  • add the --capture-output setting to capture stdout/stderr tot the log
    file (:issue:1271)
  • Allow disabling sendfile() via the SENDFILE environment variable
    (:issue:1252)
  • fix reload under pycharm (:issue:1129)

Workers
+++++++

  • fix: make sure to remove the signal from the worker pipe (:issue:1269)
  • fix: gthread worker, handle removed socket in the select loop
    (:issue:1258)

19.5.0

===================

Core
++++

  • fix: Ensure response to HEAD request won't have message body
  • fix: lock domain socket and remove on last arbiter exit (:issue:1220)
  • improvement: use EnvironmentError instead of socket.error (:issue:939)
  • add: new FORWARDDED_ALLOW_IPS environment variable (:issue:1205)
  • fix: infinite recursion when destroying sockets (:issue:1219)
  • fix: close sockets on shutdown (:issue:922)
  • fix: clean up sys.exc_info calls to drop circular refs (:issue:1228)
  • fix: do post_worker_init after load_wsgi (:issue:1248)

Workers
+++++++

  • fix access logging in gaiohttp worker (:issue:1193)
  • eventlet: handle QUIT in a new coroutine (:issue:1217)
  • gevent: remove obsolete exception clauses in run (:issue:1218)
  • tornado: fix extra "Server" response header (:issue:1246)
  • fix: unblock the wait loop under python 3.5 in sync worker (:issue:1256)

Logging
+++++++

  • fix: log message for listener reloading (:issue:1181)
  • Let logging module handle traceback printing (:issue:1201)
  • improvement: Allow configuring logger_class with statsd_host (:issue:1188)
  • fix: traceback formatting (:issue:1235)
  • fix: print error logs on stderr and access logs on stdout (:issue:1184)

Documentation
+++++++++++++

  • Simplify installation instructions in gunicorn.org (:issue:1072)
  • Fix URL and default worker type in example_config (:issue:1209)
  • update django doc url to 1.8 lts (:issue:1213)
  • fix: miscellaneous wording corrections (:issue:1216)
  • Add PSF License Agreement of selectors.py to NOTICE (:issue: 1226)
  • document LOGGING overriding (:issue:1051)
  • put a note that error logs are only errors from Gunicorn (:issue:1124)
  • add a note about the requirements of the threads workers under python 2.x (:issue:1200)
  • add access_log_format to config example (:issue:1251)

Tests
+++++

  • Use more pytest.raises() in test_http.py

19.4.5

===================

  • fix: NameError fileno in gunicorn.http.wsgi (:issue:1178)

19.4.4

===================

  • fix: check if a fileobject can be used with sendfile(2) (:issue:1174)
  • doc: be more descriptive in errorlog option (:issue:1173)

================
Changelog - 2017

.. note::

Please see :doc:news for the latest changes

19.4.3

===================

  • fix: don't check if a file is writable using os.stat with SELINUX (:issue:1171)

19.4.2

===================

Core
++++

  • improvement: handle HaltServer in manage_workers (:issue:1095)
  • fix: Do not rely on sendfile sending requested count (:issue:1155)
  • fix: claridy --no-sendfile default (:issue:1156)
  • fix: LoggingCatch sendfile failure from no file descriptor (:issue:1160)

Logging
+++++++

  • fix: Always send access log to syslog if syslog is on
  • fix: check auth before trying to own a file (:issue:1157)

Documentation
+++++++++++++

  • fix: Fix Slowloris broken link. (:issue:1142)
  • Tweak markup in faq.rst

Testing
+++++++

  • fix: gaiohttp test (:issue:1164)

19.4.1

===================

  • fix tornado worker (:issue:1154)

19.4.0 / 2015/11/20

Core
++++

  • fix: make sure that a user is able to access to the logs after dropping a
    privilege (:issue:1116)
  • improvement: inherit the Exception class where it needs to be (:issue:997)
  • fix: make sure headers are always encoded as latin1 RFC 2616 (:issue:1102)
  • improvement: reduce arbiter noise (:issue:1078)
  • fix: don't close the unix socket when the worker exit (:issue:1088)
  • improvement: Make last logged worker count an explicit instance var (:issue:1078)
  • improvement: prefix config file with its type (:issue:836)
  • improvement: pidfile handing (:issue:1042)
  • fix: catch OSError as well as ValueError on race condition (:issue:1052)
  • improve support of ipv6 by backporting urlparse.urlsplit from Python 2.7 to
    Python 2.6.
  • fix: raise InvalidRequestLine when the line contains malicious data
    (:issue:1023)
  • fix: fix argument to disable sendfile
  • fix: add gthread to the list of supported workers (:issue:1011)
  • improvement: retry socket binding up to five times upon EADDRNOTAVAIL
    (:issue:1004)
  • breaking change: only honor headers that can be encoded in ascii to comply to
    the RFC 7230 (See :issue:1151).

Logging
+++++++

  • add new parameters to access log (:issue:1132)
  • fix: make sure that files handles are correctly reopened on HUP
    (:issue:627)
  • include request URL in error message (:issue:1071)
  • get username in access logs (:issue:1069)
  • fix statsd logging support on Python 3 (:issue:1010)

Testing
+++++++

  • use last version of mock.
  • many fixes in Travis CI support
  • miscellaneous improvements in tests

Thread worker
+++++++++++++

  • fix: Fix self.nr usage in ThreadedWorker so that auto restart works as
    expected (:issue:1031)

Gevent worker
+++++++++++++

  • fix quit signal handling (:issue:1128)
  • add support for Python 3 (:issue:1066)
  • fix: make graceful shutdown thread-safe (:issue:1032)

Tornado worker
++++++++++++++

  • fix ssl options (:issue:1146, :issue:1135)
  • don't check timeout when stopping gracefully (:issue:1106)

AIOHttp worker
++++++++++++++

  • add SSL support (:issue:1105)

Documentation
+++++++++++++

  • fix link to proc name setting (:issue:1144)
  • fix worker class documentation (:issue:1141, :issue:1104)
  • clarify graceful timeout documentation (:issue:1137)
  • don't duplicate NGINX config files examples (:issue:1050, :issue:1048)
  • add web.py framework example (:issue:1117)
  • update Debian/Ubuntu installations instructions (:issue:1112)
  • clarify pythonpath setting description (:issue:1080)
  • tweak some example for python3
  • clarify sendfile documentation
  • miscellaneous typos in source code comments (thanks!)
  • clarify why REMOTE_ADD may not be the user's IP address (:issue:1037)

Misc
++++

  • fix: reloader should survive SyntaxError (:issue:994)
  • fix: expose the reloader class to the worker.

19.3.0

===================

Changes

Core
++++

  • fix: :issue:978 make sure a listener is inheritable
  • add check_config class method to workers
  • fix: :issue:983 fix select timeout in sync worker with multiple
    connections
  • allows workers to access to the reloader. close :issue:984
  • raise TypeError instead of AssertionError

Logging
+++++++

  • make Logger.loglevel a class attribute

Documentation
+++++++++++++

  • fix: :issue:988 fix syntax errors in examples/gunicorn_rc

19.2.1

==================

Changes

Logging
+++++++

  • expose loglevel in the Logger class

AsyncIO worker (gaiohttp)
+++++++++++++++++++++++++

  • fix :issue:977 fix initial crash

Documentation
+++++++++++++

  • document security mailing-list in the contributing page.

19.2

=================

Changes

Core
++++

  • optimize the sync workers when listening on a single interface
  • add --sendfile settings to enable/disable sendfile. fix :issue:856 .
  • add the selectors module to the code base. :issue:886
  • add --max-requests-jitter setting to set the maximum jitter to add to the
    max-requests setting.
  • fix :issue:899 propagate proxy_protocol_info to keep-alive requests
  • fix :issue:863 worker timeout: dynamic timeout has been removed
  • fix: Avoid world writable file

Logging
+++++++

  • fix :issue:941 set logconfig default to paster more trivially
  • add statsd-prefix config setting: set the prefix to use when emitting statsd
    metrics
  • :issue:832 log to console by default

Thread Worker
+++++++++++++

  • fix :issue:908 make sure the worker can continue to accept requests

Eventlet Worker
+++++++++++++++

  • fix :issue:867 Fix eventlet shutdown to actively shut down the workers.

Documentation
+++++++++++++

Many improvements and fixes have been done, see the detailed changelog for
more information.

================
Changelog - 2016

.. note::

Please see :doc:news for the latest changes

19.1.1

===================

Changes

Core
++++

  • fix :issue:835: display correct pid of already running instance
  • fix :pr:833: fix PyTest class in setup.py.

Logging
+++++++

  • fix :issue:838: statsd logger, send statsd timing metrics in milliseconds
  • fix :issue:839: statsd logger, allows for empty log message while pushing
    metrics and restore worker number in DEBUG logs
  • fix :issue:850: add timezone to logging
  • fix :issue:853: Respect logger_class setting unless statsd is on

AioHttp worker
++++++++++++++

  • fix :issue:830 make sure gaiohttp worker is shipped with gunicorn.

19.1

=================

Changes

Core
++++

  • fix :issue:785: handle binary type address given to a client socket address
  • fix graceful shutdown. make sure QUIT and TERMS signals are switched everywhere.
  • :issue:799: fix support loading config from module
  • :issue:805: fix check for file-like objects
  • fix :issue:815: args validation in WSGIApplication.init
  • fix :issue:787: check if we load a pyc file or not.

Tornado worker
++++++++++++++

  • fix :issue:771: support tornado 4.0
  • fix :issue:783: x_headers error. The x-forwarded-headers option has been removed
    in c4873681299212d6082cd9902740eef18c2f14f1 <https://github.com/benoitc/gunicorn/commit/c4873681299212d6082cd9902740eef18c2f14f1>_.
    The discussion is available on :pr:633.

AioHttp worker
++++++++++++++

  • fix: fetch all body in input. fix :issue:803
  • fix: don't install the worker if python < 3.3
  • fix :issue:822: Support UNIX sockets in gaiohttp worker

Async worker
++++++++++++

  • fix :issue:790: StopIteration shouldn't be catched at this level.

Logging
+++++++

  • add statsd logging handler fix :issue:748

Paster
++++++

  • fix :issue:809: Set global logging configuration from a Paste config.

Extra
+++++

  • fix RuntimeError in gunicorn.reloader (:issue:807)

Documentation
+++++++++++++

  • update faq: put a note on how watch logs in the console &lt;http://docs.gunicorn.org/en/latest/faq.htmlwhy-i-don-t-see-any-logs-in-the-console&gt;_
    since many people asked for it.

19.0

version improve a lot the usage of Gunicorn with python 3 by adding two new workers &lt;http://docs.gunicorn.org/en/latest/design.htmlasyncio-workers&gt;_
to it: gthread a fully threaded async worker using futures and gaiohttp a
worker using asyncio.

Breaking Changes

Switch QUIT and TERM signals
++++++++++++++++++++++++++++

With this change, when gunicorn receives a QUIT all the workers are
killed immediately and exit and TERM is used for the graceful shutdown.

Note: the old behaviour was based on the NGINX but the new one is more
correct according the following doc:

https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html

also it is complying with the way the signals are sent by heroku:

https://devcenter.heroku.com/articles/python-faqwhat-constraints-exist-when-developing-applications-on-heroku

Deprecations
++++++++++++

run_gunicorn, gunicorn_django and gunicorn_paster are now
completely deprecated and will be removed in the next release. Use the
gunicorn command instead.

Changes

core
++++

  • add aiohttp worker named gaiohttp using asyncio. Full async worker
    on python 3.
  • fix HTTP-violating excess whitespace in write_error output
  • fix: try to log what happened in the worker after a timeout, add a
    worker_abort hook on SIGABRT signal.
  • fix: save listener socket name in workers so we can handle buffered
    keep-alive requests after the listener has closed.
  • add on_exit hook called just before exiting gunicorn.
  • add support for python 3.4
  • fix: do not swallow unexpected errors when reaping
  • fix: remove incompatible SSL option with python 2.6
  • add new async gthread worker and --threads options allows to set multiple
    threads to listen on connection
  • deprecate gunicorn_django and gunicorn_paster
  • switch QUIT and TERM signal
  • reap workers in SIGCHLD handler
  • add universal wheel support
  • use email.utils.formatdate in gunicorn.util.http_date
  • deprecate the --debug option
  • fix: log exceptions that occur after response start …
  • allows loading of applications from .pyc files (693)
  • fix: issue 691, raw_env config file parsing
  • use a dynamic timeout to wait for the optimal time. (Reduce power
    usage)
  • fix python3 support when notifying the arbiter
  • add: honor $WEB_CONCURRENCY environment variable. Useful for heroku
    setups.
  • add: include tz offset in access log
  • add: include access logs in the syslog handler.
  • add --reload option for code reloading
  • add the capability to load gunicorn.base.Application without the loading of
    the arguments of the command line. It allows you to :ref:embed gunicorn in your own application &lt;custom&gt;.
  • improve: set wsgi.multithread to True for async workers
  • fix logging: make sure to redirect wsgi.errors when needed
  • add: syslog logging can now be done to a unix socket
  • fix logging: don't try to redirect stdout/stderr to the logfile.
  • fix logging: don't propagate log
  • improve logging: file option can be overriden by the gunicorn options
    --error-logfile and --access-logfile if they are given.
  • fix: don't override SERVER_* by the Host header
  • fix: handle_error
  • add more option to configure SSL
  • fix: sendfile with SSL
  • add: worker_int callback (to react on SIGTERM)
  • fix: don't depend on entry point for internal classes, now absolute
    modules path can be given.
  • fix: Error messages are now encoded in latin1
  • fix: request line length check
  • improvement: proxy_allow_ips: Allow proxy protocol if "*" specified
  • fix: run worker's setup method before setting num_workers
  • fix: FileWrapper inherit from object now
  • fix: Error messages are now encoded in latin1
  • fix: don't spam the console on SIGWINCH.
  • fix: logging -don't stringify T and D logging atoms (621)
  • add support for the latest django version
  • deprecate run_gunicorn django option
  • fix: sys imported twice

gevent worker
+++++++++++++

  • fix: make sure to stop all listeners
  • fix: monkey patching is now done in the worker
  • fix: "global name 'hub' is not defined"
  • fix: reinit hub on old versions of gevent
  • support gevent 1.0
  • fix: add subprocess in monkey patching
  • fix: add support for multiple listener

eventlet worker
+++++++++++++++

  • fix: merge duplicate EventletWorker.init_process method (fixes 657)
  • fix: missing errno import for eventlet sendfile patch
  • fix: add support for multiple listener

tornado worker
++++++++++++++

  • add graceful stop support

================
Changelog - 2015

.. note::

Please see :doc:news for the latest changes.

18.0


  • new: add -e/--env command line argument to pass an environment variables to
    gunicorn
  • new: add --chdir command line argument to specified directory
    before apps loading. - new: add wsgi.file_wrapper support in async workers
  • new: add --paste command line argument to set the paster config file
  • deprecated: the command gunicorn_django is now deprecated. You should now
    run your application with the WSGI interface installed with your project (see
    https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/gunicorn/) for
    more infos.
  • deprecated: the command gunicorn_paste is deprecated. You now should use
    the new --paste argument to set the configuration file of your paster
    application.
  • fix: Removes unmatched leading quote from the beginning of the default access
    log format string
  • fix: null timeout
  • fix: gevent worker
  • fix: don't reload the paster app when using pserve
  • fix: after closing for error do not keep alive the connection
  • fix: responses 1xx, 204 and 304 should not force the connection to be closed

17.5


  • new: add signals documentation
  • new: add post_worker_init hook for workers
  • new: try to use gunicorn.conf.py in current folder as the default
    config file.
  • fix graceful timeout with the Eventlet worker
  • fix: don't raise an error when closing the socket if already closed
  • fix: fix --settings parameter for django application and try to find
    the django settings when using the gunicorn command.
  • fix: give the initial global_conf to paster application
  • fix: fix 'Expect: 100-continue' support on Python 3

New versionning:
++++++++++++++++

With this release, the versionning of Gunicorn is changing. Gunicorn is
stable since a long time and there is no point to release a "1.0" now.
It should have been done since a long time. 0.17 really meant it was the
17th stable version. From the beginning we have only 2 kind of
releases:

major release: releases with major changes or huge features added
services releases: fixes and minor features added So from now we will
apply the following versionning &lt;major&gt;.&lt;service&gt;. For example 17.5 is a
service release.

0.17.4


  • fix unix socket address parsing

0.17.3


  • add systemd sockets support
  • add python -m gunicorn.app.wsgiapp support
  • improve logger class inheritance
  • exit when the config file isn't found
  • add the -R option to enable stdio inheritance in daemon mode
  • don't close file descriptors > 3 in daemon mode
  • improve STDOUT/STDERR logging
  • fix pythonpath option
  • fix pidfile creation on Python 3
  • fix gevent worker exit
  • fix ipv6 detection when the platform isn't supporting it

0.17.2


  • optimize readline
  • make imports errors more visible when loading an app or a logging
    class
  • fix tornado worker: don't pass ssl options if there are none
  • fix PEP3333: accept only bytetrings in the response body
  • fix support on CYGWIN platforms

0.17.1


  • add syslog facility name setting
  • fix --version command line argument
  • fix wsgi url_scheme for https

================
Changelog - 2014

.. note::

Please see :doc:news for the latest changes.

0.17.0


  • allows gunicorn to bind to multiple address
  • add SSL support
  • add syslog support
  • add nworkers_changed hook
  • add response arg for post_request hook
  • parse command line with argparse (replace deprecated optparse)
  • fix PWD detection in arbiter
  • miscellaneous PEP8 fixes

0.16.1


  • Fix packaging

0.16.0


  • Added support for Python 3.2 & 3.3
  • Expose --pythonpath command to all gunicorn commands
  • Honor $PORT environment variable, useful for deployment on heroku
  • Removed support for Python 2.5
  • Make sure we reopen the logs on the console
  • Fix django settings module detection from path
  • Reverted timeout for client socket. Fix issue on blocking issues.
  • Fixed gevent worker

0.15.0


  • new documentation site on http://docs.gunicorn.org
  • new website on http://gunicorn.org
  • add haproxy PROXY protocol &lt;http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt&gt;_ support
  • add ForwardedAllowIPS option: allows to filter Front-end's IPs
    allowed to handle X-Forwarded-* headers.
  • add callable hooks for paster config
  • add x-forwarded-proto as secure scheme default (Heroku is using this)
  • allows gunicorn to load a pre-compiled application
  • support file reopening & reexec for all loggers
  • initialize the logging config file with defaults.
  • set timeout for client socket (slow client DoS).
  • NoMoreData, ChunkMissingTerminator, InvalidChunkSize are now
    IOError exceptions
  • fix graceful shutdown in gevent
  • fix limit request line check

0.14.6


  • fix gevent & subproces
  • fix request line length check
  • fix keepalive = 0
  • fix tornado worker

0.14.5


  • fix logging during daemonisation

0.14.4


  • new --graceful-timeout option
  • fix multiple issues with request limit
  • more fixes in django settings resolutions
  • fix gevent.core import
  • fix keepalive=0 in eventlet worker
  • fix handle_error display with the unix worker
  • fix tornado.wsgi.WSGIApplication calling error
  • breaking change: take the control on graceful reload back.
    graceful can't be overrided anymore using the on_reload function.

0.14.3


  • improvement: performance of http.body.Body.readline()
  • improvement: log HTTP errors in access log like Apache
  • improvement: display traceback when the worker fails to boot
  • improvement: makes gunicorn work with gevent 1.0
  • examples: websocket example now supports hybi13
  • fix: reopen log files after initialization
  • fix: websockets support
  • fix: django1.4 support
  • fix: only load the paster application 1 time

0.14.2


  • add validate_class validator: allows to use a class or a method to
    initialize the app during in-code configuration
  • add support for max_requests in tornado worker
  • add support for disabling x_forwarded_for_header in tornado worker
  • gevent_wsgi is now an alias of gevent_pywsgi
  • Fix gevent_pywsgi worker

0.14.1


  • fixing source archive, reducing its size

0.14.0


  • check if Request line is too large: You can now pass the parameter
    --limit-request-line or set the limit_request_line in your
    configuration file to set the max size of the request line in bytes.
  • limit the number of headers fields and their size. Add
    --limit-request-field and limit-request-field-size settings
  • add p variable to the log access format to log pidfile
  • add {HeaderName}o variable to the logo access format to log the
    response header HeaderName
  • request header is now logged with the variable {HeaderName}i in the
    access log file
  • improve error logging
  • support logging.configFile
  • support django 1.4 in both gunicorn_django & run_gunicorn command
  • improve reload in django run_gunicorn command (should just work now)
  • allows people to set the X-Forwarded-For header key and disable it by
    setting an empty string.
  • fix support of Tornado
  • many other fixes.

Changelog - 2013

0.13.4


  • fix util.closerange function used to prevent leaking fds on python 2.5
    (typo)

0.13.3


  • refactor gevent worker
  • prevent leaking fds on reexec
  • fix inverted request_time computation

0.13.2


  • Add support for Tornado 2.0 in tornado worker
  • Improve access logs: allows customisation of the log format & add
    request time
  • Logger module is now pluggable
  • Improve graceful shutdown in Python versions >= 2.6
  • Fix post_request root arity for compatibility
  • Fix sendfile support
  • Fix Django reloading

0.13.1


  • Fix unix socket. log argument was missing.

0.13.0


  • Improve logging: allows file-reopening and add access log file
    compatible with the apache combined log format &lt;http://httpd.apache.org/docs/2.0/logs.htmlcombined&gt;_
  • Add the possibility to set custom SSL headers. X-Forwarded-Protocol
    and X-Forwarded-SSL are still the default
  • New on_reload hook to customize how gunicorn spawn new workers on
    SIGHUP
  • Handle projects with relative path in django_gunicorn command
  • Preserve path parameters in PATH_INFO
  • post_request hook now accepts the environ as argument.
  • When stopping the arbiter, close the listener asap.
  • Fix Django command run_gunicorn in settings reloading
  • Fix Tornado_ worker exiting
  • Fix the use of sendfile in wsgi.file_wrapper

0.12.2


  • Add wsgi.file_wrapper optimised for FreeBSD, Linux & MacOSX (use
    sendfile if available)
  • Fix django run_gunicorn command. Make sure we reload the application
    code.
  • Fix django localisation
  • Compatible with gevent 0.14dev

0.12.1


  • Add "on_starting" hook. This hook can be used to set anything before
    the arbiter really start
  • Support bdist_rpm in setup
  • Improve content-length handling (pep 3333)
  • Improve Django support
  • Fix daemonizing (142)
  • Fix ipv6 handling

.. _Tornado: http://www.tornadoweb.org/

Changelog - 2012

0.12.0


  • Add support for logging configuration using a ini file.
    It uses the standard Python logging's module Configuration
    file format and allows anyone to use his custom file handler
  • Add IPV6 support
  • Add multidomain application example
  • Improve gunicorn_django command when importing settings module
    using DJANGO_SETTINGS_MODULE environment variable
  • Send appropriate error status on http parsing
  • Fix pidfile, set permissions so other user can read
    it and use it.
  • Fix temporary file leaking
  • Fix setpgrp issue, can now be launched via ubuntu upstart
  • Set the number of workers to zero on WINCH

0.11.2


  • Add SERVER_SOFTWARE to the os.environ
  • Add support for django settings environment variable
  • Add support for logging configuration in Paster ini-files
  • Improve arbiter notification in asynchronous workers
  • Display the right error when a worker can't be used
  • Fix Django support
  • Fix HUP with Paster applications
  • Fix readline in wsgi.input

0.11.1


  • Implement max-requests feature to prevent memory leaks.
  • Added 'worker_exit' server hook.
  • Reseed the random number generator after fork().
  • Improve Eventlet worker.
  • Fix Django command run_gunicorn.
  • Fix the default proc name internal setting.
  • Workaround to prevent Gevent worker to segfault on MacOSX.

0.11.0


  • Improve dramatically performances of Gevent and Eventlet workers
  • Optimize HTTP parsing
  • Drop Server and Date headers in start_response when provided.
  • Fix latency issue in async workers

0.10.1


  • Improve gevent's workers. Add "egg:gunicorngevent_wsgi" worker using
    gevent.wsgi &lt;http://www.gevent.org/gevent.wsgi.html&gt;_ and
    "egg:gunicorngevent_pywsgi" worker using gevent.pywsgi &lt;http://www.gevent.org/gevent.pywsgi.html&gt;_ .
    "egg:gunicorngevent" using our own HTTP parser is still here and
    is recommended for normal uses. Use the "gevent.wsgi" parser if you
    need really fast connections and don't need streaming, keepalive or ssl.
  • Add pre/post request hooks
  • Exit more quietly
  • Fix gevent dns issue

0.10.0


  • New HTTP parser.
  • New HUP behaviour. Re-reads the configuration and then reloads all
    worker processes without changing the master process id. Helpful for
    code reloading and monitoring applications like supervisord and runit.
  • Added a preload configuration parameter. By default, application code
    is now loaded after a worker forks. This couple with the new HUP
    handling can be used for dev servers to do hot code reloading. Using
    the preload flag can help a bit in small memory VM's.
  • Allow people to pass command line arguments to WSGI applications. See:
    examples/alt_spec.py &lt;http://github.com/benoitc/gunicorn/raw/master/examples/alt_spec.py&gt;_
  • Added an example gevent reloader configuration:
    examples/example_gevent_reloader.py &lt;http://github.com/benoitc/gunicorn/blob/master/examples/example_gevent_reloader.py&gt;_.
  • New gevent worker "egg:gunicorngevent2", working with gevent.wsgi.
  • Internal refactoring and various bug fixes.
  • New documentation website.

0.9.1


  • Support https via X-Forwarded-Protocol or X-Forwarded-Ssl headers
  • Fix configuration
  • Remove -d options which was used instead of -D for daemon.
  • Fix umask in unix socket

0.9.0


  • Added when_ready hook. Called just after the server is started
  • Added preload setting. Load application code before the worker processes
    are forked.
  • Refactored Config
  • Fix pidfile
  • Fix QUIT/HUP in async workers
  • Fix reexec
  • Documentation improvements

0.8.1


  • Fix builtins import in config
  • Fix installation with pip
  • Fix Tornado WSGI support
  • Delay application loading until after processing all configuration

0.8.0


  • Refactored Worker management for better async support. Now use the -k option
    to set the type of request processing to use
  • Added support for Tornado_

0.7.2


  • Added --spew option to help debugging (installs a system trace hook)
  • Some fixes in async arbiters
  • Fix a bug in start_response on error

0.7.1


  • Fix bug when responses have no body.

0.7.0


  • Added support for Eventlet_ and Gevent_ based workers.
  • Added Websockets_ support
  • Fix Chunked Encoding
  • Fix SIGWINCH on OpenBSD_
  • Fix PEP 333_ compliance for the write callable.

0.6.5


  • Fix pidfile handling
  • Fix Exception Error

0.6.4


  • Use cStringIO for performance when possible.
  • Fix worker freeze when a remote connection closes unexpectedly.

0.6.3


  • Make HTTP parsing faster.
  • Various bug fixes

0.6.2


  • Added support for chunked response.
  • Added proc_name option to the config file.
  • Improved the HTTP parser. It now uses buffers instead of strings to store
    temporary data.
  • Improved performance when sending responses.
  • Workers are now murdered by age (the oldest is killed first).

0.6.1


  • Added gunicorn config file support for Django admin command
  • Fix gunicorn config file. -c was broken.
  • Removed TTIN/TTOU from workers which blocked other signals.

0.6.0


  • Added setproctitle support
  • Change privilege switch behavior. We now work like NGINX, master keeps the
    permissions, new uid/gid permissions are only set for workers.

0.5.1


  • Fix umask
  • Added Debian packaging

0.5.0


  • Added configuration file &lt;configuration.html&gt;_ handler.
  • Added support for pre/post fork hooks
  • Added support for before_exec hook
  • Added support for unix sockets
  • Added launch of workers processes under different user/group
  • Added umask option
  • Added SCRIPT_NAME support
  • Better support of some exotic settings for Django projects
  • Better support of Paste-compatible applications
  • Some refactoring to make the code easier to hack
  • Allow multiple keys in request and response headers

.. _Tornado: http://www.tornadoweb.org/
.. _PEP 333: http://www.python.org/dev/peps/pep-0333/
.. _Eventlet: http://eventlet.net
.. _Gevent: http://gevent.org
.. _OpenBSD: http://openbsd.org
.. _Websockets: http://dev.w3.org/html5/websockets/

Changelog - 2011

requests -> 2.18.4

2.18.4

+++++++++++++++++++

Improvements

  • Error messages for invalid headers now include the header name for easier debugging

Dependencies

  • We now support idn

@greenape greenape merged commit c8e153a into master Jan 22, 2018
@greenape greenape deleted the pyup-initial-update branch April 11, 2018 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants