tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Pods that don't produce any output for a while result in intermittent "unexpected EOF" errors in Tilt console

Open milas opened this issue 4 years ago • 1 comments

Expected Behavior

  • Tilt silently re-establishes log connection without emitting an error

Current Behavior

  • If a Pod doesn't log for a while, presumably due to no I/O and the connection being idle, it gets closed and the following error emitted:
     Error streaming web-7f9b8b65f4-wt97k logs: unexpected EOF
    

Steps to Reproduce

  1. tilt up with a Pod that runs indefinitely but is mostly silent/quiet (e.g. echo "hello world"; sleep infinity;")
  2. Wait a while 😴

Context

We re-establish connection fine, I think it's just the connection being closed due to being idle. This is case we handle in various ways (hence it re-establishing connection fine), we might just need to treat this error as expected and not log it (or only do it at Debug level?)

milas avatar Sep 17 '21 18:09 milas

I see this often - glad to know we can ignore it.

adamf avatar Mar 01 '22 22:03 adamf