Il giorno 04/ago/2011, alle ore 15:07, Peter Smit ha scritto:

> When in async mode (--async 10 --ugreen), will reading
> environ['wsgi.input'] ever block?
> 
> If it can block, what would be the way to read wsgi.input in an async
> way? Does waiting with x-wsgiorg.fdevent.readable guarantee that I can
> do environ['wsgi.input'].readline()?
> 
> My question is because I want to have websocket connections, but I
> don't want clients to be able to DoS my server by opening connections
> and sending a small bit of data, making all my threads block waiting
> for a new line.
> 

… sorry just realized that i never committed the .fileno() method :(

You can get the latest tip and use

environ['wsgi.input'].fileno()

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to