cloudfoundry/bosh — pull request #470 by m1093782566 (2013-12-09 09:22:53+00:00)
Title: set bigger time_out values for httpclient because default httpclient timeout is a bit small

...e_out values are a bit small.

I got a httpclient timeout error while uploading compiled rootfs_lucid64 and buildpack_cache packages to blobstore.The full error stack message is show below:
Creating new packages
rootfs_lucid64/2: Failed to create object, underlying error: # /var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/http.rb:555:in `write'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/http.rb:555:in `<<'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/http.rb:555:in `dump_file'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/http.rb:484:in `dump'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/http.rb:889:in `dump'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/session.rb:600:in `block in query'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/session.rb:598:in `query'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient/session.rb:161:in `query'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient.rb:1060:in `do_get_block'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient.rb:869:in `block in do_request'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient.rb:956:in `protect_keep_alive_disconnected'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient.rb:868:in `do_request'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient.rb:756:in `request'
/var/vcap/packages/director/gem_home/gems/httpclient-2.2.4/lib/httpclient.rb:671:in `put'
/var/vcap/packages/director/gem_home/gems/blobstore_client-1.5.0.pre.3/lib/blobstore_client/dav_blobstore_client.rb:39:in `create_file'
/var/vcap/packages/director/gem_home/gems/blobstore_client-1.5.0.pre.3/lib/blobstore_client/base.rb:30:in `create'
/var/vcap/packages/ruby/lib/ruby/1.9.1/forwardable.rb:201:in `create'
/var/vcap/packages/ruby/lib/ruby/1.9.1/forwardable.rb:201:in `create'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/blob_util.rb:8:in `block in create_blob'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/blob_util.rb:8:in `open'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/blob_util.rb:8:in `create_blob'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:368:in `create_package'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:287:in `block (2 levels) in create_packages'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/event_log.rb:58:in `track'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:285:in `block in create_packages'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:283:in `each'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:283:in `create_packages'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:269:in `process_packages'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:140:in `process_release'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:55:in `block in perform'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/lock_helper.rb:47:in `block in with_release_lock'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/lock.rb:58:in `lock'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/lock_helper.rb:47:in `with_release_lock'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/update_release.rb:55:in `perform'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/job_runner.rb:98:in `perform_job'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/job_runner.rb:29:in `block in run'
/var/vcap/packages/director/gem_home/gems/bosh_common-1.5.0.pre.3/lib/common/thread_formatter.rb:46:in `with_thread_name'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/job_runner.rb:29:in `run'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/lib/bosh/director/jobs/base_job.rb:12:in `perform'
/var/vcap/packages/director/gem_home/gems/resque-1.23.1/lib/resque/job.rb:125:in `perform'
/var/vcap/packages/director/gem_home/gems/resque-1.23.1/lib/resque/worker.rb:186:in `perform'
/var/vcap/packages/director/gem_home/gems/resque-1.23.1/lib/resque/worker.rb:149:in `block in work'
/var/vcap/packages/director/gem_home/gems/resque-1.23.1/lib/resque/worker.rb:128:in `loop'
/var/vcap/packages/director/gem_home/gems/resque-1.23.1/lib/resque/worker.rb:128:in `work'
/var/vcap/packages/director/gem_home/gems/bosh-director-1.5.0.pre.3/bin/bosh-director-worker:76:in `'
/var/vcap/packages/director/bin/bosh-director-worker:23:in `load'
/var/vcap/packages/director/bin/bosh-director-worker:23:in `

' (00:02:03)

As default @receive_timeout = 60 and @send_timeout = 120, more detailed information is show below:
https://github.com/nahi/httpclient/blob/ddd141b30848a8c4df2dfa84602f80b5b8a5f362/lib/httpclient/session.rb#L136