mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Don't panic if replay server is not responding
This commit is contained in:
+3
-1
@@ -20,7 +20,9 @@ func (o *TCPOutput) Write(data []byte) (n int, err error) {
|
||||
conn, err := o.connect(o.address)
|
||||
defer conn.Close()
|
||||
|
||||
n, err = conn.Write(data)
|
||||
if err != nil {
|
||||
n, err = conn.Write(data)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user