diff options
| author | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2026-07-07 13:07:44 +0200 |
|---|---|---|
| committer | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2026-07-07 13:07:44 +0200 |
| commit | 52ac49a1ebd712198b66c7662b8542376c156194 (patch) | |
| tree | d7e3b93eba2ecfc97b7ed84bb4fea9e06f26ff1b | |
| parent | 576536028069fd30161fec67c6eb11d8c4646a93 (diff) | |
| download | sourcewatch-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.
| -rw-r--r-- | cmd_linux.go | 1 |
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) |
