aboutsummaryrefslogtreecommitdiffstats
path: root/cmd_linux.go
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2026-07-07 13:07:44 +0200
committerBernhard Guillon <Bernhard.Guillon@begu.org>2026-07-07 13:07:44 +0200
commit52ac49a1ebd712198b66c7662b8542376c156194 (patch)
treed7e3b93eba2ecfc97b7ed84bb4fea9e06f26ff1b /cmd_linux.go
parent576536028069fd30161fec67c6eb11d8c4646a93 (diff)
downloadsourcewatch-52ac49a1ebd712198b66c7662b8542376c156194.tar.gz
sourcewatch-52ac49a1ebd712198b66c7662b8542376c156194.zip
Disable read timeout after manifest sync completes
The 30s timeout was firing during idle event monitoring when no file changes were happening. Now reset to no timeout after manifest_done is received.
Diffstat (limited to 'cmd_linux.go')
-rw-r--r--cmd_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd_linux.go b/cmd_linux.go
index d937000..5d5e10a 100644
--- a/cmd_linux.go
+++ b/cmd_linux.go
@@ -125,6 +125,7 @@ func handleClient(conn net.Conn, stack *GitignoreStack) {
syncFromManifest(remoteManifest, stack)
logInfo("sync: done")
logInfo("watcher: monitoring for changes ...")
+ conn.SetReadDeadline(time.Time{}) // no timeout during event monitoring
case "event_create":
logDebug("event: create %s", msg.Path)