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

"fd must be non-negative: -1" when specifying several identical sockets in gevent mode #2432

Open
soon opened this issue Apr 30, 2022 · 0 comments

Comments

@soon
Copy link

soon commented Apr 30, 2022

Running the following app:

def application(e, sr):
    sr('200 OK', [('Content-Type', 'text/html')])
    return [b"Hello World"]

With these parameters:

uwsgi --socket ./gevent.socket --socket ./gevent.socket --module gevent_example --gevent 100

Results in

Traceback (most recent call last):
  File "src/gevent/libev/corecext.pyx", line 674, in gevent.libev.corecext.loop.io
  File "src/gevent/libev/corecext.pyx", line 1052, in gevent.libev.corecext.io.__cinit__
ValueError: fd must be non-negative: -1

This does not happen if we omit --gevent 100

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

No branches or pull requests

1 participant