reset remote tracer stream on errors
This commit is contained in:
parent
abe4763c01
commit
cce30a4d6a
|
@ -214,12 +214,17 @@ func (t *RemoteTracer) doWrite() {
|
|||
|
||||
end:
|
||||
if !ok {
|
||||
gzipW.Close()
|
||||
helpers.FullClose(s)
|
||||
if err != nil {
|
||||
s.Reset()
|
||||
} else {
|
||||
gzipW.Close()
|
||||
helpers.FullClose(s)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
s.Reset()
|
||||
s, err = t.openStream()
|
||||
if err != nil {
|
||||
log.Errorf("error opening remote tracer stream: %s", err.Error())
|
||||
|
|
Loading…
Reference in New Issue