From: Eric Hodel Date: 2011-12-15T11:15:33+09:00 Subject: [ruby-core:41665] [ruby-trunk - Bug #5737] WEBrick doesn't support keep alive connections for 204 and 304 responses Issue #5737 has been updated by Eric Hodel. RFC 2616 section 8.1.2.1 states: In order to remain persistent, all messages on the connection MUST have a self-defined message length (i.e., one not defined by closure of the connection), as described in section 4.4. 204 and 304 responses meet this requirement so should persist the connection. ---------------------------------------- Bug #5737: WEBrick doesn't support keep alive connections for 204 and 304 responses http://redmine.ruby-lang.org/issues/5737 Author: Aaron Patterson Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0dev (2011-12-07 trunk 33966) [x86_64-darwin11.2.0] WEBrick doesn't support keep alive connections for 204 and 304 responses. If a 204 or 304 response is made along with a keepalive, a warning is issued and webrick closes the connection. I've attached a patch that fixes the problem, and I will apply it if it's OK. :-) -- http://redmine.ruby-lang.org