1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib
Justin Bull 8960ecbe64
Ensure Rack::ContentLength is loaded as middleware (#4541)
6.0.5 removed Sidekiq::WebApplication's own Content-Length header calculation, expecting Rack to do it instead via some middleware. This was to fix an issue where New Relic would inject content into Sidekiq's Web UI after the hand crafted content length was calculated. While such middleware exists, it's not enabled by default (at least in a Rails app) and so the HTTP response doesn't have the header at all.

The absence of the header has caused unexpected behaviour in an nginx and HAProxy setup, causing each page load to take exactly 20 seconds. The suspicion is that, without the Content-Length response header, HAProxy waits a preset amount of time before deciding the body must have surely been finished and then reponds.
2020-04-22 14:03:50 -07:00
..
generators/sidekiq Follow generator configuration to determine the resulting test file (#4371) 2019-11-11 10:37:39 -08:00
sidekiq Ensure Rack::ContentLength is loaded as middleware (#4541) 2020-04-22 14:03:50 -07:00
sidekiq.rb Bump standard, fix style issues 2020-03-17 13:38:48 -07:00