MCPcopy Create free account
hub / github.com/DNAProject/DNA / SessionTimeoverCheck

Method SessionTimeoverCheck

http/websocket/session/session.go:99–106  ·  view source on GitHub ↗

sesseion time over check

()

Source from the content-addressed store, hash-verified

97
98//sesseion time over check
99func (self *Session) SessionTimeoverCheck() bool {
100 nCurTime := time.Now().Unix()
101 if nCurTime-self.nLastActive > SESSION_TIMEOUT {
102 //sec
103 return true
104 }
105 return false
106}
107
108//remove timew over transaction hashes
109func (self *Session) RemoveTimeoverTxHashes() (remove []TxHashInfo) {

Callers 1

checkSessionsTimeoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected