Hi,

You can see it here
https://github.com/tovmeod/uwsgi-asgi/blob/77e25b430c0cd44b2dd204326df3fe4096ccc07e/uwsgi_asgi/uwsgi_asgi.py

Thanks

On Thu, Mar 2, 2017 at 8:18 PM, Roberto De Ioris <[email protected]> wrote:

>
> > Hi,
> >
> > I'm running uwsgi in async mode and I'm consistently getting bad file
> > descriptor error:
> >
> > epoll_ctl(): Bad file descriptor [core/event.c line 636]
> > epoll_ctl(): Bad file descriptor [core/event.c line 521]
> >
> > The lines comes from event_queue_del_fd and event_queue_add_fd_read
> >
> > Maybe adding and removing the same fd could be causing problems
> >
> > One of the fd comes from a timerfd, if I change the timerfd to wake up
> > every second it works fine, but anything in the range of a couple hundred
> > milliseconds it starts complaining.
> >
> > I don't think that adding and removing the same fd inside the loop is a
> > good idea, this could be done once and removing the fd should be explicit
> > at least this behaviour could be optional.
> >
> >
> > Thanks
> > Avraham
> > _______________________________________________
> > uWSGI mailing list
> > [email protected]
> > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> >
>
>
> Hi, can you paste a code snippet to reproduce the problem ?
>
> --
> Roberto De Ioris
> http://unbit.com
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to