Skip to content

Commit 25e8ca8

Browse files
authored
Merge pull request #555 from devspace-cloud/sync-improvements
Increase walk interval on downstream
2 parents 7c67f0b + a91c55b commit 25e8ca8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/devspace/services/sync.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ func startStream(kubeconfig *rest.Config, pod *v1.Pod, container string, command
286286
stderr = []byte{}
287287
}
288288

289-
log.Warnf("Error in exec connection %s to pod %s/%s: %s %v", strings.Join(command, " "), pod.Namespace, pod.Name, string(stderr), err)
289+
// We currently just kill the currently running command when this happens, maybe in future we should try to reconnect?
290+
log.WriteString("\n\r")
291+
log.Fatalf("Sync - connection lost to pod %s/%s: %s %v", pod.Namespace, pod.Name, string(stderr), err)
290292
}
291293
}
292294

pkg/devspace/sync/downstream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (d *downstream) mainLoop() error {
129129
select {
130130
case <-d.interrupt:
131131
return nil
132-
case <-time.After(1300 * time.Millisecond):
132+
case <-time.After(1700 * time.Millisecond):
133133
break
134134
}
135135

0 commit comments

Comments
 (0)