Merge pull request #15 from lightstep/restart_flush_thread
Automatically restart the background thread when necessary
This commit is contained in:
Коммит
d1d37f670a
|
@ -25,6 +25,10 @@ class TransportHTTPJSON
|
|||
@host = options[:collector_host]
|
||||
@port = options[:collector_port]
|
||||
@secure = (options[:collector_encryption] != 'none')
|
||||
|
||||
# Forking a worker process may kill the background thread; restart it as
|
||||
# necessary
|
||||
@thread = _start_network_thread unless @thread.alive?
|
||||
end
|
||||
|
||||
def flush_report(auth, report)
|
||||
|
|
Загрузка…
Ссылка в новой задаче