open-vault/physical
Jeff Mitchell e52b554c0b
Add an idle timeout for the server (#4760)
* Add an idle timeout for the server

Because tidy operations can be long-running, this also changes all tidy
operations to behave the same operationally (kick off the process, get a
warning back, log errors to server log) and makes them all run in a
goroutine.

This could mean a sort of hard stop if Vault gets sealed because the
function won't have the read lock. This should generally be okay
(running tidy again should pick back up where it left off), but future
work could use cleanup funcs to trigger the functions to stop.

* Fix up tidy test

* Add deadline to cluster connections and an idle timeout to the cluster server, plus add readheader/read timeout to api server
2018-06-16 18:21:33 -04:00
..
azure
cassandra
cockroachdb
consul Add context handling to Consul operations (#4739) 2018-06-11 11:03:00 -04:00
couchdb
dynamodb Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
etcd
file Do some best-effort cleanup in file backend (#4684) 2018-06-04 19:41:36 -04:00
gcs Fix swallowed err from gcs close calls (#4706) 2018-06-05 15:27:02 -04:00
inmem Fix another test error 2018-06-09 18:31:47 -04:00
manta
mssql
mysql
postgresql
s3
spanner
swift
zookeeper
cache.go Revert some of commit 050ab805a7565c5b0cadb0176023031ee5f0d17b. (#4768) 2018-06-14 13:44:13 -04:00
latency.go
physical.go
physical_access.go
physical_view.go
testing.go
transactions.go
types.pb.go
types.proto