• Felix Lange's avatar
    rpc/comms: use ConnState to track HTTP connections · ba14957c
    Felix Lange authored
    The JSON-RPC server wraps TCP connections in order to be able to shut
    down them down when RPC is stopped. This is rather scary code. Go 1.3
    introduced the http.Server.ConnState hook for such purposes. We can use
    this facility now that we depend on Go 1.4.
    
    There are multiple reasons for the switch apart from making the code
    less scary:
    
    * the TCP listener no longer ticks every second to check a channel
    * pending requests are allowed to finish after stopping the server
    * we can time out idle keep-alive connections
    ba14957c
Name
Last commit
Last update
Godeps Loading commit data...
_data Loading commit data...
accounts Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
compression/rle Loading commit data...
core Loading commit data...
crypto Loading commit data...
docker Loading commit data...
errs Loading commit data...
eth Loading commit data...
ethdb Loading commit data...
event Loading commit data...
generators Loading commit data...
jsre Loading commit data...
logger Loading commit data...
metrics Loading commit data...
miner Loading commit data...
p2p Loading commit data...
params Loading commit data...
pow Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
tests Loading commit data...
trie Loading commit data...
whisper Loading commit data...
xeth Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...