MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / stopTimer

Method stopTimer

mcp/streamable.go:117–124  ·  view source on GitHub ↗

stopTimer stops the inactivity timer permanently.

()

Source from the content-addressed store, hash-verified

115
116// stopTimer stops the inactivity timer permanently.
117func (i *sessionInfo) stopTimer() {
118 i.timerMu.Lock()
119 defer i.timerMu.Unlock()
120 if i.timer != nil {
121 i.timer.Stop()
122 i.timer = nil
123 }
124}
125
126// StreamableHTTPOptions configures the StreamableHTTPHandler.
127type StreamableHTTPOptions struct {

Callers 1

ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected