Cycling through only one worker

I had an interesting experience just now.

Setup: nginx proxies a portal server, which uses an underlying app
server to
render some contents.

Problem: When displaying a portal page containing content from an app
server, it rendered, and rendered, and rendered again, repeatedly. No
codes. The error log said “client closed prematurely connection …”,
the access log said “got page, got images, got page again, got images

We currently have only a single worker, and due to misconfiguration, the
underlying app server failed miserably. The request was aborted
probably due to the app server failing. I guess nginx considered the
broken and tried another, which was the same worker. And it kept

Question: Can I tell nginx to detect this cycle and instead display an

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs