mwilliams-right_http_connection 1.2.100 → 1.2.101

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/right_http_connection.rb +7 -3
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.100
1
+ 1.2.101
@@ -419,9 +419,13 @@ them.
419
419
 
420
420
  def finish(reason = '')
421
421
  if @http && @http.started?
422
- reason = ", reason: '#{reason}'" unless reason.blank?
423
- @logger.info("Closing #{@http.use_ssl? ? 'HTTPS' : 'HTTP'} connection to #{@http.address}:#{@http.port}#{reason}")
424
- @http.finish
422
+ begin
423
+ reason = ", reason: '#{reason}'" unless reason.blank?
424
+ @logger.info("Closing #{@http.use_ssl? ? 'HTTPS' : 'HTTP'} connection to #{@http.address}:#{@http.port}#{reason}")
425
+ @http.finish
426
+ rescue Exception => e
427
+ @logger.error "Error trying to finish HTTP connection: #{e.message}"
428
+ end
425
429
  end
426
430
  @http = nil
427
431
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwilliams-right_http_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.100
4
+ version: 1.2.101
5
5
  platform: ruby
6
6
  authors:
7
7
  - RightScale