The connection was interrupted by the software of your host machine.

I retrieve data using tiny tds. When retrieving, I get the following error. I do not use eclipse. I am using a Mongrel + Windows server

Read error: #<Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.> C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel/http_response.rb:140:in `write' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel/http_response.rb:140:in `write' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel/http_response.rb:98:in `send_header' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/handle r/mongrel.rb:88:in `process' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel.rb:165:in `block in process_client' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel.rb:164:in `each' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel.rb:164:in `process_client' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming w32/lib/mongrel.rb:291:in `block (2 levels) in run' 

Please suggest me how to solve this problem.

+4
source share
1 answer

I have the same problem: there is this error message in the server log and the client gets a Timeout exception. Finally, we got the main reason: we are sending a base64 encoded string of image from the web server to the client. This base64 string may abort with HTTP response separation codes and a web server failure. After we removed the base64 string, it works fine.

+1
source

All Articles