Skip to contentSkip to conversation

oe-git-proxy: Enable oe-git-proxy for git >= 2.32

PATCH New Florian Bezdeka 1 participant 1 message Feb 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-git-proxy: Enable oe-git-proxy for git >= 2.32

Modern git versions (>= 2.32) have a optimization enabled where the socket communication is moved into half-duplex mode once the client has sent all necessary data and is waiting for RX. git is simply closing the TX part of the socket.

There are proxy implementations out there that will shutdown the complete communication once the partial shutdown was received - breaking the git:// protocol.

Using socat with the ignoreeof option fixes this issue. Closing one of stdin/stdout will not trigger a partial shutdown of the underlying socket.

ignoreeof is a stone old feature. It will not break in combination with older git versions - where the partial shutdown will not be triggerend anyhow.

---
 scripts/oe-git-proxy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/oe-git-proxy +1 -1
index aa9b9dc9a9..80a7a030a7 100755
@@ -184,4 +184,4 @@ else
 	METHOD="PROXY:$PROXY:$1:$2,proxyport=${PORT}${PROXYAUTH}"
 fi
 
-exec $SOCAT STDIO "$METHOD"
+exec $SOCAT STDIO,ignoreeof "$METHOD"
Signature · 1 line
2.39.1