Pylons / waitress

Waitress - A WSGI server for Python 3
https://docs.pylonsproject.org/projects/waitress/en/latest/
Other
1.45k stars 176 forks source link

How setup timeout and maxsize limits? #299

Closed seidlmic closed 4 years ago

seidlmic commented 4 years ago

Hello, I can not figure out how to setup timeout (request processing takes to much time) and limit for output data.

      serve(application,
        host='0.0.0.0',
        port=port,
        cleanup_interval=2,
        channel_timeout=4
      )

I am using Werkzeug Request and Response objects and jsonrpcserver dispatch method to delegate request to my processing method. In this method I have

time.sleep(timeToSleep)

But even I setup timeToSleep much bigger than channel_timeout I can seen that the request is always processed?

Thanks for any help.

stevepiercy commented 4 years ago

GitHub is primarily for reporting bugs and issues with Waitress, not for usage. You would be better served by posting your usage question to the appropriate channel. Please see "General Support" at https://pylonsproject.org/community-support.html

seidlmic commented 4 years ago

Thanks for tip. I have posted there.