Timeout when sending over 16k of data with UTF-8 characters

Bryan McLellan btm at loftninjas.org
Tue Nov 1 13:13:44 UTC 2011


On Tue, Nov 1, 2011 at 2:21 AM, Igor Sysoev <igor at sysoev.ru> wrote:
> Could you create debug log:
> http://nginx.org/en/docs/debugging_log.html

https://gist.github.com/1330454

You

Ruby throws an EOFError when this occurs:

EOFError: end of file reached
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/protocol.rb:135:in
`sysread'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/protocol.rb:135:in
`block in rbuf_fill'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/timeout.rb:52:in
`timeout'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/timeout.rb:82:in
`timeout'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/protocol.rb:134:in
`rbuf_fill'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/protocol.rb:116:in
`readuntil'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/protocol.rb:126:in
`readline'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:2136:in
`read_status_line'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:2125:in
`read_new'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:1117:in
`transport_request'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:1103:in
`request'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:1096:in
`block in request'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:564:in
`start'
	from /home/btm/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/net/http.rb:1094:in
`request'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest/rest_request.rb:84:in
`block in call'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest/rest_request.rb:99:in
`hide_net_http_bug'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest/rest_request.rb:83:in
`call'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest.rb:219:in
`block in api_request'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest.rb:288:in
`retriable_rest_request'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest.rb:218:in
`api_request'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/rest.rb:130:in
`put_rest'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/node.rb:626:in
`save'
	from (irb):9
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/shef.rb:73:in
`block in start'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/shef.rb:72:in
`catch'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/lib/chef/shef.rb:72:in
`start'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/gems/chef-0.10.4/bin/shef:34:in
`<top (required)>'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/bin/shef:19:in `load'
	from /home/btm/.rvm/gems/ruby-1.9.1-p431/bin/shef:19:in `<main>'chef > quit


> What does this module do ?
> --add-module=../nginx-x-rid-header

https://github.com/newobj/nginx-x-rid-header

It adds a header line with a uuid for associating frontend and backend requests.

It fails without that module as well with this configuration:

nginx: nginx version: nginx/1.1.6
nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
nginx: TLS SNI support enabled
nginx: configure arguments: --conf-path=/etc/nginx
--prefix=/tmp/nginx-1.1.6 --with-http_ssl_module
--with-http_stub_status_module --with-debug

Bryan



More information about the nginx mailing list