mwilliams-right_http_connection 1.2.100 → 1.2.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|