mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-17 20:57:29 +08:00
Increase session TTL to 4 hours
This commit is contained in:
parent
6d967441ac
commit
e49245dfe9
@ -59,7 +59,7 @@ func NewSession() (*Session, error) {
|
|||||||
sessions[s.Id] = s
|
sessions[s.Id] = s
|
||||||
|
|
||||||
// Schedule cleanup of the session
|
// Schedule cleanup of the session
|
||||||
time.AfterFunc(1*time.Hour, func() {
|
time.AfterFunc(4*time.Hour, func() {
|
||||||
s = GetSession(s.Id)
|
s = GetSession(s.Id)
|
||||||
wsServer.BroadcastTo(s.Id, "session end")
|
wsServer.BroadcastTo(s.Id, "session end")
|
||||||
log.Printf("Starting clean up of session [%s]\n", s.Id)
|
log.Printf("Starting clean up of session [%s]\n", s.Id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user