Permalink
Browse files

close connection if there are no pending requests, closes #184

  • Loading branch information...
1 parent 8e20ecf commit 494615ec214add43e6ded6ab0b65841bbaffc351 @igrigorik committed Mar 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/em-http/http_connection.rb
View
2 lib/em-http/http_connection.rb
@@ -184,6 +184,8 @@ def unbind(reason)
rescue EventMachine::ConnectionError => e
@clients.pop.close(e.message)
end
+ else
+ @conn.close_connection
end
end
alias :close :unbind

0 comments on commit 494615e

Please sign in to comment.