mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Merge 15a4ed0333 into 13107c6b2b
This commit is contained in:
commit
d0b62aef90
|
|
@ -66,7 +66,9 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *authtype
|
|||
// Whichever returns first is the one we will serve back to the client.
|
||||
timeoutChan := make(chan struct{})
|
||||
timer := time.AfterFunc(syncReq.timeout, func() {
|
||||
if syncReq.timeout != 0 && syncReq.since != types.StreamPosition(0) && !syncReq.wantFullState {
|
||||
close(timeoutChan) // signal that the timeout has expired
|
||||
}
|
||||
})
|
||||
|
||||
done := make(chan util.JSONResponse)
|
||||
|
|
|
|||
Loading…
Reference in a new issue