Re: Add Request Timeout on API level

2017-12-26 Thread Adam Johnson
There isn't a native request timeout in Django, however you can configure your hosting WSGI server (at least gunicorn and uWSGI) to have a request timeout, and indeed it's recommended. I'm not sure how hard it would be to implement this (reliably, for all cases and platforms) inside Django. On 26

Add Request Timeout on API level

2017-12-26 Thread Pankhuri Agarwal
I would like to know if there is any django rest native method to add request timeouts at API level. Any api having request timeout set to x ms should return response {'status_code': 408, 'message': 'Request Timeout'} after x ms if no other response is returned till that time. -- You received