Increase the timeout to 50 sec (#3481)

This commit is contained in:
Zoltan Papp 2025-03-10 18:23:47 +01:00 committed by GitHub
parent 80ceb80197
commit cd9eff5331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -628,7 +628,7 @@ func (s *Server) Up(callerCtx context.Context, _ *proto.UpRequest) (*proto.UpRes
s.statusRecorder.UpdateManagementAddress(s.config.ManagementURL.String())
s.statusRecorder.UpdateRosenpass(s.config.RosenpassEnabled, s.config.RosenpassPermissive)
timeoutCtx, cancel := context.WithTimeout(callerCtx, 10*time.Second)
timeoutCtx, cancel := context.WithTimeout(callerCtx, 50*time.Second)
defer cancel()
runningChan := make(chan struct{}, 1) // buffered channel to do not lose the signal