Felix Lange
f5f042ffdc
rpc: ensure client doesn't block for slow subscribers
...
I initially made the client block if the 100-element buffer was
exceeded. It turns out that this is inconvenient for simple uses of the
client which subscribe and perform calls on the same goroutine, e.g.
client, _ := rpc.Dial(...)
ch := make(chan int) // note: no buffer
sub, _ := client.EthSubscribe(ch, "something")
for event := range ch {
client.Call(...)
}
This innocent looking code will lock up if the server suddenly decides
to send 2000 notifications. In this case, the client's main loop won't
accept the call because it is trying to deliver a notification to ch.
The issue is kind of hard to explain in the docs and few people will
actually read them. Buffering is the simple option and works with close
to no overhead for subscribers that always listen.
8 years ago
Felix Lange
464660651d
rpc: don't exceed context deadline while waiting for send lock
8 years ago
Felix Lange
3e3a79ea13
Merge pull request #2855 from karalabe/downloader-fix-stall-drop
...
eth/downloader: fix the stall checks/drops during sync
8 years ago
bas-vk
771655e3fe
Merge pull request #2808 from fjl/rpc-client-3
...
rpc: add new client, use it everywhere
8 years ago
Felix Lange
60cd5bf939
Merge pull request #2842 from fjl/downloader-remove-eth61
...
eth, eth/downloader, eth/fetcher: delete eth/61 sync code
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
Felix Lange
bb01bea4e2
rpc: fix bad method error for batch requests
...
If a batch request contained an invalid method, the server would reply
with a non-batch error response. Fix this by tracking an error for each
batch element.
8 years ago
Felix Lange
c145589f25
rpc: remove grace period when shutting down the server
...
The server delayed closing of connections for 3s when stopping. This was
supposed to allow for slow handlers, but it didn't really work. When
geth quits, it will just exit immediately after quitting the server.
Removing the timer makes testing easier because all connections will be
closed after Stop returns.
8 years ago
Péter Szilágyi
c7c82f1b44
eth/downloader: fix the stall checks/drops during sync
8 years ago
Péter Szilágyi
f58ac2b46b
Merge pull request #2712 from bas-vk/sendtx
...
eth/api: rename signAndSendTransaction to sendTransaction
8 years ago
Felix Lange
016007bd25
eth, eth/downloader, eth/fetcher: delete eth/61 code
...
The eth/61 protocol was disabled in #2776 , this commit removes its
message handlers and hash-chain sync logic.
8 years ago
Bas van Kervel
4ee00b2309
eth/api: rename signAndSendTransaction to sendTransaction
8 years ago
Péter Szilágyi
fb81bc3291
Merge pull request #2851 from yep/alpine-3-4
...
containers/docker: update to alpine 3.4
8 years ago
Péter Szilágyi
c646d287f8
Merge pull request #2833 from karalabe/fix-dao-challenge-annoyance
...
eth: cancel DAO challenge on peer drop (annoying log)
8 years ago
yep
51d4539a79
containers/docker: update to alpine 3.4
8 years ago
Péter Szilágyi
f273c64a94
Merge pull request #2836 from fjl/godeps-update-leveldb
...
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
8 years ago
Felix Lange
74ec95e7f6
Merge pull request #2711 from hdiedrich/1.4.7-filter-races-cleanup
...
Fix #2710 Filter race: concurrent map read and map write
8 years ago
Felix Lange
65f340bb95
Merge pull request #2821 from Arachnid/discover-enode
...
cmd/bootnode: Add support for outputting a node's ID on the command line
8 years ago
Felix Lange
4d014d6d7e
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
8 years ago
Péter Szilágyi
fe56461387
Merge pull request #2834 from zsfelfoldi/chaindb-upgrade-fix
...
eth: fixed chaindb upgrade
8 years ago
zsfelfoldi
56efed71b5
eth: fixed chaindb upgrade
8 years ago
Péter Szilágyi
91f18ffd47
eth: cancel DAO challenge on peer drop (annoying log)
8 years ago
Jeffrey Wilcke
a4c4125b11
Merge pull request #2814 from karalabe/dao-hard-finalcombo
...
cmd, core, eth, miner, params, tests: finalize the DAO fork
8 years ago
Péter Szilágyi
993b412160
cmd/utils, eth: display the user's current fork, minor text tweak
8 years ago
Péter Szilágyi
2c2e389b77
cmd, core, eth, miner, params, tests: finalize the DAO fork
8 years ago
Péter Szilágyi
3291235711
accounts, core, eth: pass chain config for chain maker to test DAO
8 years ago
Péter Szilágyi
461cdb593b
core, params, tests: add DAO hard-fork balance moves
8 years ago
Péter Szilágyi
7f00e8c033
core, eth: enforce network split post DAO hard-fork
8 years ago
Péter Szilágyi
a87089fd2d
cmd, core, miner: add extradata validation to consensus rules
8 years ago
Péter Szilágyi
1e24c2e4f4
cmd/geth, miner, params: special extradata for DAO fork start
8 years ago
Péter Szilágyi
9e56811a37
core: gracefully handle missing homestead block config
8 years ago
Péter Szilágyi
6060e098c9
cmd, core, eth, params: implement flags to control dao fork blocks
8 years ago
Péter Szilágyi
aa1e052cb4
Merge pull request #2823 from karalabe/circleci-hive
...
circleci: enable docker based hive testing
8 years ago
Péter Szilágyi
1a652afe16
Merge pull request #2724 from pirapira/fix_reset_fees
...
vm: Replace some SstoreClearGas with SstoreResetGas
8 years ago
Péter Szilágyi
6f1e45d5ba
circleci: enable docker based hive testing
8 years ago
Nick Johnson
91130ea3fc
cmd/bootnode: Add support for outputting a node's ID on the command line
8 years ago
Felix Lange
b7caa1751c
Merge pull request #2819 from fjl/rpc-back-to-npipe
...
Godeps, rpc: switch back to package npipe
8 years ago
Felix Lange
39b4ef4b02
Godeps: update golang.org/x/net/...
...
This adds compatibility with Go 1.7, where context has
moved into the standard library.
8 years ago
Felix Lange
74be4a62c5
Godeps, rpc: switch back to package npipe
...
The named pipe implementation from go-winio has some issues
that need to be addressed before we can use it again.
8 years ago
Felix Lange
e11489eb5f
appveyor.yml: don't install Go and MinGW, they're already there ( #2813 )
8 years ago
Péter Szilágyi
f970610c04
Merge pull request #2799 from zsfelfoldi/api-nonce-fix2
...
core: added CheckNonce() to Message interface
8 years ago
Matthew Di Ferrante
68b48cc045
cmd/geth: print version on geth start ( #2622 )
8 years ago
Péter Szilágyi
7596b33506
Merge pull request #2801 from karalabe/dao-hardfork-importdrop
...
eth/downloader: return invalid chain (peer drop) on import fails
8 years ago
Péter Szilágyi
2b7aff202a
Merge pull request #2793 from karalabe/blockchain-import-mine-datarace
...
core: solve a remote-import/local-mine data race
8 years ago
Péter Szilágyi
e76c55a9b8
Merge pull request #2805 from karalabe/readme-running-geth
...
README: expand with "Running Geth" section
8 years ago
Péter Szilágyi
ca211065b6
README: expand with "Running Geth" section
8 years ago
villesundell
c7442ef0d2
ethdb, p2p/discover: replace "alloted" with "allotted" ( #2785 )
8 years ago
Péter Szilágyi
a691aa2a13
eth/downloader: return invalid chain (peer drop) on import fails
8 years ago
zsfelfoldi
00787fe781
core: added CheckNonce() to Message interface
8 years ago
Péter Szilágyi
f5a29eab5c
core: solve a remote-import/local-mine data race
8 years ago