Method: NewRelic::Agent::NewRelicService#http_connection

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

#http_connectionObject

Return a Net::HTTP connection object to make a call to the collector. We’ll reuse the same handle for cases where we’re using keep-alive, or otherwise create a new one.

[View source]

303
304
305
306
307
308
309
# File 'lib/new_relic/agent/new_relic_service.rb', line 303

def http_connection
  if @in_session
    establish_shared_connection
  else
    create_http_connection
  end
end