Skip to content

2.4.1+ breaks meinheld worker setup  #737

@altunyurt

Description

@altunyurt

This following line breaks the gunicorn + meinheld setup with the error

AttributeError: 'meinheld.input' object has no attribute 'content_length'

https://github.com/timothycrosley/hug/blob/06eaffd2058f7683f7e800c7cd1e356d0a5a88c6/hug/interface.py#L607

Using only the gunicorn workers do not cause any problem, it is basically caused due to meinheld.input object does not have any generic attribute setter defined.

The interesting thing is, if i try to downgrade the package with
pip install hug==2.4.1
it downloads the package from https://files.pythonhosted.org/packages/6f/7d/e5c49f54049a54c27dffb7543bb6b3b2edf2866c160b2532167f5f8e6a33/hug-2.4.1-py2.py3-none-any.whl

which still has the same line in it. But the 2.4.1 i have on my local setup i've installed a few weeks ago , and the tagged revision on github do not have that change. So apparently packaging is somehow messed up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions