1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-16 04:04:56 +02:00
No description
Find a file
Keegan Carruthers-Smith 3a7c446248 Handle is blocking (#12)
NOTE: This is a breaking change to the expected contract of Handler. Please update your implementation to use AsyncHandler if needs be.

We have strict ordering requirements of how we handle FileSystem requests in
LSP. As such relying on the ordering the goroutine scheduler runs requests in
leads to potential out of order mutations to the FS. As such we update the
jsonrpc2 implementation to by default block until Handle returns (note it can
still respond to the request at a later stage). For more simple use cases we
provide the AsyncHandler which will work like the previous implementation.

* Ensure handle is blocking
2017-02-21 14:25:50 +02:00
websocket Add pluggable transport interface + WebSocket support 2016-12-17 18:35:34 -08:00
.travis.yml ci: disable testing tip (#11) 2017-02-20 04:55:33 -08:00
async.go Handle is blocking (#12) 2017-02-21 14:25:50 +02:00
call_opt.go Add CallOpt SetID 2017-01-31 11:08:53 +02:00
codec_test.go Add pluggable transport interface + WebSocket support 2016-12-17 18:35:34 -08:00
conn_opt.go Use correct format string for ID 2016-11-14 21:17:22 +02:00
handler_with_error.go remove incorrect special handling of null results 2017-01-22 15:34:08 -08:00
jsonrpc2.go Handle is blocking (#12) 2017-02-21 14:25:50 +02:00
jsonrpc2_test.go Handle is blocking (#12) 2017-02-21 14:25:50 +02:00
LICENSE initial commit 2016-10-11 15:56:18 +02:00
object_test.go better null handling in (Request).params and (Response).result (#7) 2017-01-26 02:18:31 -08:00
README.md add badge 2017-02-08 11:48:48 -08:00
stream.go synchronize writes in BufferedObjectStream (#9) 2017-01-31 23:39:03 -08:00

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

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

This package is experimental until further notice.

Open the code in Sourcegraph

Known issues

  • Batch requests and responses are not yet supported.