Method: NewRelic::Agent::NewRelicService#session_without_keepalive

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

#session_without_keepalive(&block) ⇒ Object

[View source]

263
264
265
266
267
268
269
270
# File 'lib/new_relic/agent/new_relic_service.rb', line 263

def session_without_keepalive(&block)
  begin
    establish_shared_connection
    yield
  ensure
    close_shared_connection
  end
end