runserver 실행 시에 끊기지 않던 로직이 nginx의 uwsgi 소켓 연결 시 1분 후 연결을 종료하는 문제가 발생했다.
[error] 16992#16992: *2 upstream timed out (110: Connection timed out) while reading response header from upstream
stl 파일을 읽어 값을 계산한 뒤에 리턴하는 로직이었기에 1분 이상의 시간이 필요했다. nginx 설정에서
uwsgi_read_timeout 300s;
uwsgi의 read timeout을 설정해 주니 해결됐다.
댓글