Welcome to the "trac"-ing site of http-access2!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #124 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

broken pipes with soap4r after installing http-access2

Reported by: anonymous Assigned to: nahi
Priority: normal Milestone: 2.0.8
Component: core Version: 2.0
Keywords: Cc:

Description

After installing http-access2 a lot of calls through soap4r started getting broken pipes; usually a retry solved the problem (this was through a service running on webrick). Below is a patch to cure the symptom.

/usr/local/lib/ruby/site_ruby/1.8/http-access2/http.rb:185:in `write'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2/http.rb:185:in `dump'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2/http.rb:386:in `dump'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1212:in `query'
  /usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout'
  /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1210:in `query'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:891:in `query'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:434:in `do_get_block'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:370:in `conn_request'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:285:in `request'
  /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:264:in `post'
--- /usr/ports/www/ruby-http-access/work/http-access-2_0_6/lib/http-access2.rb  Tue Sep 13 05:20:38 2005
+++ http-access2.rb     Mon Aug 21 11:59:41 2006
@@ -368,7 +368,7 @@
     begin
       req = create_request(method, uri, query, body, extheader, !proxy.nil?)
       do_get_block(req, proxy, conn, &block)
-    rescue Session::KeepAliveDisconnected
+    rescue Session::KeepAliveDisconnected, Errno::EPIPE
       req = create_request(method, uri, query, body, extheader, !proxy.nil?)
       do_get_block(req, proxy, conn, &block)
     end

Change History

05/26/07 07:26:29 changed by nahi

  • milestone changed from undefined to 2.0.8.

06/24/07 00:16:10 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [154]) * rescue EPIPE for keep-alive reconnecting. Thanks to anonymous user who posted a patch at #124. closes #124.