fangorn/ex_git_objectstore
public
ref:ee9b4d1ac02c9b5a3a0eaa3f1c22f6008b290310
fix: buffer partial data in UploadPackV2 feed
SSH delivers data in arbitrary-sized chunks. The v2 protocol handler
assumed each feed() call contained a complete command, causing
:unknown_command errors when the command= pkt-line was split across
TCP segments.
Now: accumulate data in a buffer until a flush/delim packet indicates
a complete command is ready for parsing. Also distinguish between
no_command (bare flush, ignore) and unknown_command (real error).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SHA:
ee9b4d1ac02c9b5a3a0eaa3f1c22f6008b290310
Author:
Cole Christensen <cole.christensen@macmillan.com>
Date:
2026-03-21 03:51
Parents:
cd0457c
1 files changed
+39
-8
| Type | ||
|---|---|---|
|
|
lib/ex_git_objectstore/protocol/upload_pack_v2.ex | +39 −8 |
|
||