mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated AWSPoster
This commit is contained in:
committed by
Dan Christian Bogos
parent
bffce744f3
commit
2252ca5fef
@@ -495,6 +495,9 @@ func (pstr *AWSPoster) Post(content []byte, fallbackFileName string) (err error)
|
||||
}
|
||||
// reset client and try again
|
||||
// used in case of closed conection because of idle time
|
||||
if pstr.client != nil {
|
||||
pstr.client.Close() // Make shure the connection is closed before reseting it
|
||||
}
|
||||
pstr.client = nil
|
||||
time.Sleep(time.Duration(fib()) * time.Second)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user