MCPcopy Create free account
hub / github.com/coder/aibridge / Shutdown

Method Shutdown

mcp/proxy_streamable_http.go:164–172  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

162}
163
164func (p *StreamableHTTPServerProxy) Shutdown(_ context.Context) error {
165 if p.client == nil {
166 return nil
167 }
168
169 // NOTE: as of v0.38.0 the lib doesn't allow an outside context to be passed in;
170 // it has an internal timeout of 5s, though.
171 return p.client.Close()
172}
173
174func (p *StreamableHTTPServerProxy) traceAttributes() []attribute.KeyValue {
175 return []attribute.KeyValue{

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected