Permalink
Browse files

rescued exceptions in the processing do not result in the end of that…

… client's connection.
  • Loading branch information...
1 parent f4e92ac commit e9e9e8004a4cf68d9a01bd95acdae7d45296061b Arya Asemanfar committed Aug 4, 2009
Showing with 8 additions and 4 deletions.
  1. +1 −1 Rakefile
  2. +5 −1 lib/pandemic/server_side/client.rb
  3. +2 −2 pandemic.gemspec
View
@@ -2,7 +2,7 @@ require 'rubygems'
require 'rake'
require 'echoe'
-Echoe.new('pandemic', '0.4.4') do |p|
+Echoe.new('pandemic', '0.4.5') do |p|
p.description = "A framework for distributing work for real-time services and offline tasks."
p.url = "https://github.com/arya/pandemic/"
p.author = "Arya Asemanfar"
@@ -80,7 +80,11 @@ def close
def handle_request(request)
@current_request = Request.new(request)
- response = @server.handle_client_request(@current_request)
+ response = begin
+ @server.handle_client_request(@current_request)
+ rescue Exception => e
+ warn("Unhandled exception in handle client request:\n#{e.inspect}\n#{e.backtrace.join("\n")}")
+ end
@current_request = nil
return response
end
View
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{pandemic}
- s.version = "0.4.4"
+ s.version = "0.4.5"
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Arya Asemanfar"]
- s.date = %q{2009-07-20}
+ s.date = %q{2009-08-04}
s.description = %q{A framework for distributing work for real-time services and offline tasks.}
s.email = %q{aryaasemanfar@gmail.com}
s.extra_rdoc_files = ["lib/pandemic/client_side/cluster_connection.rb", "lib/pandemic/client_side/config.rb", "lib/pandemic/client_side/connection.rb", "lib/pandemic/client_side/connection_proxy.rb", "lib/pandemic/client_side/pandemize.rb", "lib/pandemic/connection_pool.rb", "lib/pandemic/mutex_counter.rb", "lib/pandemic/requests_per_second.rb", "lib/pandemic/server_side/client.rb", "lib/pandemic/server_side/config.rb", "lib/pandemic/server_side/handler.rb", "lib/pandemic/server_side/peer.rb", "lib/pandemic/server_side/processor.rb", "lib/pandemic/server_side/request.rb", "lib/pandemic/server_side/server.rb", "lib/pandemic/util.rb", "lib/pandemic.rb", "README.markdown"]

0 comments on commit e9e9e80

Please sign in to comment.