From 088a939461d40a54e1f4941497beca3f886bcf7f Mon Sep 17 00:00:00 2001 From: Reto Date: Thu, 10 Jan 2019 11:28:13 +0100 Subject: [PATCH] Fix default timeout for /sync (#615) (#679) 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 3c1befdd..35a15f6f 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.