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.
- data/VERSION +1 -1
- data/lib/right_http_connection.rb +7 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.101
|
@@ -419,9 +419,13 @@ them.
|
|
419
419
|
|
420
420
|
def finish(reason = '')
|
421
421
|
if @http && @http.started?
|
422
|
-
|
423
|
-
|
424
|
-
|
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
|