From 08262d700b192797cce6da6fa989b9a47f5c8c21 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 9 Jan 2019 20:06:41 +0100 Subject: [PATCH] Fix default timeout for /sync (#615) The sync timeout should be 0 according to the spec[1] [1] https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-sync Signed-off-by: Reto Brunner --- src/github.com/matrix-org/dendrite/syncapi/sync/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/syncapi/sync/request.go b/src/github.com/matrix-org/dendrite/syncapi/sync/request.go index 3c1befddf..35a15f6f9 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/sync/request.go +++ b/src/github.com/matrix-org/dendrite/syncapi/sync/request.go @@ -27,7 +27,7 @@ import ( log "github.com/sirupsen/logrus" ) -const defaultSyncTimeout = time.Duration(30) * time.Second +const defaultSyncTimeout = time.Duration(0) const defaultTimelineLimit = 20 // syncRequest represents a /sync request, with sensible defaults/sanity checks applied.