bloonfield
413dc1d265
rpc: fix closure problem in batch processing ( #14688 )
...
Demo of the issue: https://play.golang.org/p/EeTLFfppqC
8 years ago
Bas van Kervel
a6af56fa4d
rpc: disable CORS if user has not specified custom config
8 years ago
bas-vk
5e29f4be93
cmd/utils, node: remove unused solc references and improve RPC config ( #14324 )
...
Currently http cors and websocket origins are a comma separated string in the
config object. These are replaced with string arrays that are more expressive in
case of a config file.
8 years ago
Felix Lange
c213fd1fd8
all: import "context" instead of "golang.org/x/net/context"
...
There is no need to depend on the old context package now that the
minimum Go version is 1.7. The move to "context" eliminates our weird
vendoring setup. Some vendored code still uses golang.org/x/net/context
and it is now vendored in the normal way.
This change triggered new vet checks around context.WithTimeout which
didn't fire with golang.org/x/net/context.
8 years ago
Micah Zoltu
4e4e5fca54
rpc: add support for extended headers in CORS requests ( #3783 )
...
Fixes #3762 . Details about parameter:
a62a804a8a/cors.go (L50-L54)
8 years ago
Kenji Siu
d85d3c74db
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
8 years ago
Jonathan Brown
ae341b31c8
rpc: set CORS Max-Age to reduce preflight OPTIONS requests
8 years ago
Felix Lange
91b7690428
rpc: add new client, use it everywhere
...
The new client implementation supports concurrent requests,
subscriptions and replaces the various ad hoc RPC clients
throughout go-ethereum.
8 years ago
Bas van Kervel
aa9fff3e68
rpc: various fixes/enhancements
...
rpc: be less restrictive on the request id
rpc: improved documentation
console: upgrade web3.js to version 0.16.0
rpc: cache http connections
rpc: rename wsDomains parameter to wsOrigins
9 years ago
Bas van Kervel
f7328c5ecb
rpc: add pub/sub support
9 years ago
Bas van Kervel
a7bae3b2a6
rpc/http: improve request handling
9 years ago
Péter Szilágyi
df75dbfd68
cmd, node, rpc: readd inproc RPC client, expose via node
9 years ago
Péter Szilágyi
a13bc9d7a1
cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspect
9 years ago
Péter Szilágyi
72c255caef
rpc: allow RPC requests on GET too
9 years ago
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
9 years ago
Bas van Kervel
a4a4e9fcf8
removed old rpc structure and added new inproc api client
10 years ago
Taylor Gerring
a2598e649d
Permit multiple CORS domains
...
Separated by spaces
10 years ago
Taylor Gerring
44a7f997c3
Unreverse ordering
10 years ago
Taylor Gerring
5c6540452a
Omit replies for notification requests
...
When Id is missing, the client does not want a response
10 years ago
Péter Szilágyi
0ad5898c0f
rpc, xeth: fix #881 , gracefully handle offline whisper
10 years ago
Taylor Gerring
b071e7f4db
Remove old logger from RPC pkg
10 years ago
Bas van Kervel
61885aa965
Don't export types/functions
10 years ago
Bas van Kervel
2c229bac00
Replaced channel pointer field with non pointer channel
10 years ago
Bas van Kervel
ead3dd9759
Stop accepted and alive connections (http keep-alive) when the rpc service is stopped
10 years ago
Bas van Kervel
57f93d25bd
admin.stopRPC support added which stops the RPC HTTP listener
10 years ago
obscuren
d82aaf617c
rpc: changed logging to use glog
10 years ago
Taylor Gerring
b6fde73ef1
Add settable domain to CORS handler #331
10 years ago
Taylor Gerring
04a7c4ae1e
Abstract http into rpc package
...
New RpcConfig object to pass growing config
10 years ago
Taylor Gerring
d9f8b1e0c1
Report InvalidTypeError as -32602 to JSON RPC
10 years ago
Taylor Gerring
e29396b691
Use ExtraDB for storage. Fixes #577
10 years ago
Taylor Gerring
abc3d8d50a
Make send internal
10 years ago
Taylor Gerring
1f2de6ecd5
Remove extra logger
10 years ago
Taylor Gerring
67c9d9c2fa
Remove JsonWrapper
10 years ago
Taylor Gerring
8fd243ee23
Add JSON RPC batch support
...
http://www.jsonrpc.org/specification#batch
10 years ago
zelig
16ecb1e2ea
rpc
...
- camelcase fields dont play nice with otto value magic: JsonRpc -> Jsonrpc, ID -> Id
- jeth: ethereum.js rpc transport provider direct bridge between js and ethereumApi via otto jsre
10 years ago
Taylor Gerring
d3f96dc720
Consolidate error type switch
10 years ago
Taylor Gerring
094f921e50
Convert to proper errors
...
Allow returning different JSON RPC error codes depending on error type
10 years ago
Felix Lange
a11f1d6a7e
rpc: add dataDir parameter and JSON-RPC handler
10 years ago