Method: NewRelic::Agent::NewRelicService#close_shared_connection

Defined in:
lib/new_relic/agent/new_relic_service.rb

#close_shared_connectionObject


277
278
279
280
281
282
283
# File 'lib/new_relic/agent/new_relic_service.rb', line 277

def close_shared_connection
  if @shared_tcp_connection
    ::NewRelic::Agent.logger.debug("Closing shared TCP connection to #{@shared_tcp_connection.address}:#{@shared_tcp_connection.port}")
    @shared_tcp_connection.finish if @shared_tcp_connection.started?
    @shared_tcp_connection = nil
  end
end