Alessio Treglia
b646437ec7
Decouple StartHTTP{,AndTLS}Server from Listen() ( #2791 )
...
* Decouple StartHTTP{,AndTLS}Server from Listen()
This should help solve cosmos/cosmos-sdk#2715
* Fix small mistake
* Update StartGRPCServer
* s/rpc/rpcserver/
* Start grpccore.StartGRPCServer in a goroutine
* Reinstate l.Close()
* Fix rpc/lib/test/main.go
* Update code comment
* update changelog and comments
* fix tm-monitor. more comments
2018-11-15 15:33:04 -05:00
Hleb Albau
6353862ac0
2582 Enable CORS on RPC API ( #2800 )
2018-11-14 16:47:41 +04:00
Jun Kimura
9795e12ef2
fix RecoverAndLogHandler
not to call multiple writeheader ( #2688 )
2018-10-24 10:07:33 +02:00
Alessio Treglia
f11db8c1b0
Pass http.ServeTLS() errors back to the caller ( #2461 )
...
Closes : #2460
* Pass http.ServeTLS() errors back to the caller
* Update CHANGELOG
* Amend StartHTTPServer() too for consistency's sake
* Revert "Amend StartHTTPServer() too for consistency's sake"
This reverts commit 23bfb4c2e917f581702291fe3ea69fce23f8c89d.
2018-09-21 18:12:29 +02:00
Dev Ojha
2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
...
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
2018-08-10 09:25:57 +04:00
Ethan Buchman
ea31c4836a
Merge branch 'develop' into jae/literefactor4
2018-07-23 23:28:14 -04:00
Ethan Buchman
379e5a15cc
Uint64
2018-07-06 07:56:00 -04:00
Ethan Buchman
bd47ed989f
rpc/lib/server: add test for int parsing
2018-07-06 07:55:15 -04:00
Jae Kwon
d336cfe5d3
RPC HTTP does not require quotes around int64/int/uint64/uint types
2018-07-05 23:36:49 -07:00
Ethan Buchman
5453aa6169
Merge branch 'develop' into jae/literefactor4
2018-07-02 14:57:30 -04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Anton Kaliaev
297cd4cfe8
limit HTTP request body and WS read msg size to 1MB
2018-06-29 12:40:32 +04:00
Jae Kwon
bf0ff212b9
Refactor "lite" to handle delayed validator set changes.
...
Also, fix consensus liveness issue.
2018-06-25 17:12:25 -07:00
Alexander Simmerl
0d35d722cb
rpc: Break up long lines
2018-06-23 01:01:31 +02:00
Anton Kaliaev
936a655990
limit number of open connections
...
Refs #1740
also, expose limit option for number concurrent streams for gRPC
(unlimited by default)
2018-06-22 19:25:11 +04:00
Liamsi
9803f18494
review comments:
...
gofmt
2018-06-21 12:21:33 -07:00
Liamsi
a39b2522d5
review comments:
...
- re-add test
- add TODO
- err instead of panic where possible
2018-06-21 11:51:46 -07:00
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
...
This reverts commit 96a3502
2018-06-20 17:35:30 -07:00
Liamsi
96a3502126
delete everything
2018-06-20 15:19:08 -07:00
Anton Kaliaev
aaddf5d32f
set pubsub default capacity to 0
...
Refs #951
Jae: I don't know a good way to catch these errors in general, but
forcing pubsub's internal channel to have a capacity of 0 will reveal
bugs sooner, if the subscriber also has a 0 or small capacity ch to pull
from.
2018-06-19 17:07:21 +04:00
Anton Kaliaev
26b2e808f7
[rpc/lib/server] wrote a basic test for WebsocketManager
2018-06-19 17:06:48 +04:00
Hendrik Hofstadt
67416feb3a
return 404 for unknown RPC endpoints
2018-06-04 22:14:20 +02:00
Ethan Buchman
c170800fbd
Merge branch 'develop' into jae/aminoify
2018-04-07 16:16:53 +03:00
Jae Kwon
fb64314d1c
Review from Anton
2018-04-06 13:46:40 -07:00
Jae Kwon
c541d58d2f
WIP: fix rpc/core
2018-04-05 16:07:29 -07:00
Jae Kwon
3037b5b7ca
Fix rpc/lib/...
2018-04-05 15:45:11 -07:00
Anton Kaliaev
491c8ab4c1
[rpc/lib] log cert and key files in StartHTTPAndTLSServer
2018-04-02 15:21:05 +02:00
Anton Kaliaev
5ef8a6e887
deprecate not fully formed addresses
2018-04-02 15:21:05 +02:00
Anton Kaliaev
d694d47d22
[rpc/lib] rename vars according to Go conventions
2018-04-02 15:21:05 +02:00
Zaki Manian
ecdc1b9bb0
Add a method for creating an https server ( #1403 )
2018-04-02 11:36:09 +02:00
Alexander Simmerl
ee51ad8e29
Make RPC handler protocol agnostic ( #1276 )
2018-03-05 19:59:04 +04:00
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
...
1. remove pointer
2. add Quit() method to Service interface
2018-02-12 14:32:09 +04:00
Ethan Buchman
7a5060dc52
replace data.Bytes with cmn.HexBytes
2018-02-03 03:47:01 -05:00
Anton Kaliaev
950a64f756
bring back transparent websocket (Refs #945 )
2017-12-10 01:18:10 -06:00
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
...
See https://github.com/tendermint/tmlibs/issues/45
2017-11-29 10:38:58 -06:00
Ethan Buchman
9529f12c28
more linting
2017-11-27 22:39:12 +00:00
Zach Ramsay
c84c7250ba
linting: few more fixes
2017-11-27 22:39:12 +00:00
Zach Ramsay
478a10aa41
Write doesn't need error checked
2017-11-27 22:39:12 +00:00
Zach Ramsay
a15c7f221d
linting: moar fixes
2017-11-27 22:39:11 +00:00
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
2017-11-27 22:39:11 +00:00
Zach Ramsay
68e7983c70
linting errors: afew more
2017-11-27 22:39:11 +00:00
Zach Ramsay
8f0237610e
linting errors: clean it all up
2017-11-27 22:39:11 +00:00
Zach Ramsay
b75d4f73e7
errcheck: PR comment fixes
2017-11-27 22:39:11 +00:00
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
2017-11-27 22:39:11 +00:00
Zach Ramsay
1721543e5c
linting: apply misspell
2017-11-27 22:39:11 +00:00
Ethan Buchman
c0e2649ed6
Merge pull request #788 from tendermint/feature/548-indexing-tags
...
new pubsub package
2017-11-08 01:02:48 +00:00
Anton Kaliaev
a01c226dc4
wsConnection: call onDisconnect
2017-11-07 19:22:01 -05:00
Anton Kaliaev
4ffe9304ba
unsubscribe from all subscriptions on WS disconnect
2017-11-02 14:00:18 -05:00
Ethan Buchman
f7f4ba5e90
rpc/lib/server: minor changes to test
2017-10-31 15:41:25 -04:00
Anton Kaliaev
61d76a273f
fixes from Bucky's and Emmanuel's reviews
2017-10-30 11:12:01 -05:00