HI,
I am using an Django app, where a few python-packages are included.
Everytime when the workers need to start because the app is sleeping (usually at the first start after midnight). During that startup there is an error which causes:
SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request
uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 306] during GET
OSError: write error
Probably because of the high loading time:
"GET / HTTP/1.1" 499 0 "-" ..... response-time=4.412
At the initial start page is nearly no caluation/rendering needed, so I think this can be only caused by all the packages I am using, which may need time to load (scipy, numpy, ... ). Correct?
The user sees only a page, that this site is not safe, since the SSL certificate is probably not loaded at this time? if I hit the page a second time, then it is running fine.
I appreciate any hints how I can avoid the 499 error and getting a clean startup.
Many thanks
Tom