mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-10-14 19:26:46 +02:00
No description
Protocol errors invoke the configured logger while the connection is shutting down. Calling user code under the connection mutex meant a logger that sends over the same connection could never observe closure and instead deadlocked. Complete teardown before logging so re-entrant calls return ErrClosed. Amp-Thread-ID: https://ampcode.com/threads/T-019fb774-aef7-75df-8eb3-8888d6835754 Co-authored-by: Amp <amp@ampcode.com> |
||
|---|---|---|
| .github | ||
| websocket | ||
| .travis.yml | ||
| async.go | ||
| call_opt.go | ||
| call_opt_test.go | ||
| codec_test.go | ||
| conn.go | ||
| conn_opt.go | ||
| conn_opt_test.go | ||
| conn_test.go | ||
| example_params_test.go | ||
| example_test.go | ||
| go.mod | ||
| go.sum | ||
| handler_with_error.go | ||
| internal_test.go | ||
| jsonrpc2.go | ||
| jsonrpc2_test.go | ||
| LICENSE | ||
| README.md | ||
| request.go | ||
| request_test.go | ||
| response.go | ||
| response_test.go | ||
| SECURITY.md | ||
| stream.go | ||
jsonrpc2: JSON-RPC 2.0 implementation for Go

Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.
Known issues
- Batch requests and responses are not yet supported.