cloudzilla Issues #136

SSH server drops connection on large pack negotiation #136

Closed

yumi opened this issue · 2 comments

yumi opened

Cloning our largest internal repo over SSH intermittently fails during pack negotiation. The client sits idle for a while, then the connection drops with fatal: the remote end hung up unexpectedly.

It only reproduces on repos with a big initial pack — small repos clone fine every time. It looks like the SSH session times out before the server finishes streaming the pack.

Stack: Cloudzilla on the staging node, default config; client is plain OpenSSH.

  1. malith commented

    Reproduced. The SSH channel write was blocking on a buffer that never flushed for packs over ~40 MB, so the write deadline fired mid-stream and tore down the session.

    The fix flushes in bounded chunks and resets the write deadline per chunk. Patch is up for review.

  2. yumi commented

    Pulled the fix onto staging — the large repo clones cleanly now, three runs in a row. Thanks for the quick turnaround.

  3. malith closed this in #137

Add a comment

Markdown supported · drop files to attach