1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-08-15 17:58:11 +02:00
No description
Find a file
Keegan Carruthers-Smith c3088e5c5d
fix/conn: prevent re-entrant logger deadlock (#99)
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>
2026-07-31 11:28:47 +02:00
.github Bump actions/checkout from 6 to 7 in the github-actions group (#96) 2026-07-02 13:16:19 +02:00
websocket fix some golangci-lint, revive linter warnings 2019-11-02 22:31:31 +02:00
.travis.yml Use the last stable Go on Travis CI (#21) 2018-08-31 09:04:50 -07:00
async.go typo in AsyncHandler docstring 2017-02-21 17:51:53 +02:00
call_opt.go Always omit params member from request when empty (#67) 2023-02-22 10:53:44 +02:00
call_opt_test.go Always omit params member from request when empty (#67) 2023-02-22 10:53:44 +02:00
codec_test.go Add PlainObjectCodec (#45) 2021-04-26 09:13:34 +02:00
conn.go fix/conn: prevent re-entrant logger deadlock (#99) 2026-07-31 11:28:47 +02:00
conn_opt.go transparently simplify control flow (#83) 2025-02-17 16:55:54 +02:00
conn_opt_test.go Fix logging of received response messages (#71) 2023-07-14 13:00:57 +02:00
conn_test.go fix/conn: prevent re-entrant logger deadlock (#99) 2026-07-31 11:28:47 +02:00
example_params_test.go Add package example test (#68) 2023-03-01 06:46:15 +02:00
example_test.go Add package example test (#68) 2023-03-01 06:46:15 +02:00
go.mod support for go 1.12+ (#30) 2019-11-03 12:56:29 -08:00
go.sum add go module, simplify some cleanups 2019-11-02 21:39:58 -07:00
handler_with_error.go transparently simplify control flow (#83) 2025-02-17 16:55:54 +02:00
internal_test.go Split jsonrpc2.go file into multiple files (#65) 2023-02-09 07:56:42 +01:00
jsonrpc2.go Cancel Handler context when connection closes (#90) 2025-08-19 16:19:52 +02:00
jsonrpc2_test.go Always omit params member from request when empty (#67) 2023-02-22 10:53:44 +02:00
LICENSE initial commit 2016-10-11 15:56:18 +02:00
README.md Add package example test (#68) 2023-03-01 06:46:15 +02:00
request.go transparently simplify control flow (#83) 2025-02-17 16:55:54 +02:00
request_test.go Always omit params member from request when empty (#67) 2023-02-22 10:53:44 +02:00
response.go Split jsonrpc2.go file into multiple files (#65) 2023-02-09 07:56:42 +01:00
response_test.go Always omit params member from request when empty (#67) 2023-02-22 10:53:44 +02:00
SECURITY.md Update SECURITY.md 2023-09-25 11:53:41 +01:00
stream.go [#57] Fix and deprecate PlainObjectCodec (#58) 2022-07-11 15:43:39 +02:00

jsonrpc2: JSON-RPC 2.0 implementation for Go Build Status Sourcegraph GoDoc

Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.

Known issues

  • Batch requests and responses are not yet supported.