adjust listen key keep alive to 30 min

This commit is contained in:
c9s 2021-11-07 23:40:13 +08:00
parent 7a3963b34e
commit aceca1b49f

View File

@ -409,7 +409,7 @@ func (s *Stream) ping(ctx context.Context) {
// Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes.
// It's recommended to send a ping about every 30 minutes.
func (s *Stream) listenKeyKeepAlive(ctx context.Context, listenKey string) {
keepAliveTicker := time.NewTicker(20 * time.Minute)
keepAliveTicker := time.NewTicker(30 * time.Minute)
defer keepAliveTicker.Stop()
// if we exit, we should invalidate the existing listen key