mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
@@ -943,7 +943,7 @@ func (c *Client) do(req *base.Request, skipResponse bool, allowFrames bool) (*ba
|
||||
c.session = sx.Session
|
||||
|
||||
if sx.Timeout != nil && *sx.Timeout > 0 {
|
||||
c.keepalivePeriod = time.Duration(float64(*sx.Timeout)*0.8) * time.Second
|
||||
c.keepalivePeriod = time.Duration(((*sx.Timeout)*10)/8) * time.Second
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user