op-geth/rpc
Felix Lange ba14957cf3 rpc/comms: use ConnState to track HTTP connections
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
2015-08-03 16:27:36 +02:00
..
api Merge pull request #1461 from bas-vk/eth_resend 2015-08-01 16:18:54 -07:00
codec all: fix license headers one more time 2015-07-23 18:35:11 +02:00
comms rpc/comms: use ConnState to track HTTP connections 2015-08-03 16:27:36 +02:00
shared all: fix license headers one more time 2015-07-23 18:35:11 +02:00
jeth.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
xeth.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00