aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/subscription.go
Commit message (Collapse)AuthorAgeFilesLines
* rpc: fix subscription corner case and speed up tests (#17874)Felix Lange2018-10-091-11/+25
| | | | | | | | | | | | | | | | Notifier tracks whether subscription are 'active'. A subscription becomes active when the subscription ID has been sent to the client. If the client sends notifications in the request handler before the subscription becomes active they are dropped. The tests tried to work around this problem by always waiting 5s before sending the first notification. Fix it by buffering notifications until the subscription becomes active. This speeds up all subscription tests. Also fix TestSubscriptionMultipleNamespaces to wait for three messages per subscription instead of six. The test now finishes just after all notifications have been received and doesn't hit the 30s timeout anymore.
* rpc: fix megacheck warningsEgon Elbre2017-08-081-1/+0
|
* rpc: support subscriptions under custom namespacesBas van Kervel2017-04-251-6/+8
|
* all: import "context" instead of "golang.org/x/net/context"Felix Lange2017-03-231-2/+1
| | | | | | | | | | There is no need to depend on the old context package now that the minimum Go version is 1.7. The move to "context" eliminates our weird vendoring setup. Some vendored code still uses golang.org/x/net/context and it is now vendored in the normal way. This change triggered new vet checks around context.WithTimeout which didn't fire with golang.org/x/net/context.
* all: fix spelling errorsPéter Szilágyi2017-01-071-1/+1
|
* rpc: refactor subscriptions and filtersBas van Kervel2016-08-171-0/+135