All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [OE-core][PATCH] oe-git-proxy: Enable oe-git-proxy for git >= 2.32
       [not found] <173FB852EC318283.30239@lists.openembedded.org>
@ 2023-02-02  8:15 ` Florian Bezdeka
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Bezdeka @ 2023-02-02  8:15 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

Hi Richard,

please hold this one back. Will send a v2 hopefully soon. One more side
effect discovered that needs investigations first. Sorry.

Best regards,
Florian

On Wed, 2023-02-01 at 15:04 +0100, Florian Bezdeka via
lists.openembedded.org wrote:
> 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.
> 
> Link: https://lore.kernel.org/git/4831bbeb0ec29ec84f92e0badfc0d628ecc6921d.camel@siemens.com/ 
> 
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
>  scripts/oe-git-proxy | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
> index aa9b9dc9a9..80a7a030a7 100755
> --- a/scripts/oe-git-proxy
> +++ b/scripts/oe-git-proxy
> @@ -184,4 +184,4 @@ else
>  	METHOD="PROXY:$PROXY:$1:$2,proxyport=${PORT}${PROXYAUTH}"
>  fi
>  
> -exec $SOCAT STDIO "$METHOD"
> +exec $SOCAT STDIO,ignoreeof "$METHOD"
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#176533): https://lists.openembedded.org/g/openembedded-core/message/176533
> Mute This Topic: https://lists.openembedded.org/mt/96676758/5792637
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [florian.bezdeka@siemens.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [OE-core][PATCH] oe-git-proxy: Enable oe-git-proxy for git >= 2.32
@ 2023-02-01 14:04 Florian Bezdeka
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Bezdeka @ 2023-02-01 14:04 UTC (permalink / raw)
  To: openembedded-core; +Cc: Florian Bezdeka

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.

Link: https://lore.kernel.org/git/4831bbeb0ec29ec84f92e0badfc0d628ecc6921d.camel@siemens.com/ 

Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
 scripts/oe-git-proxy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index aa9b9dc9a9..80a7a030a7 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -184,4 +184,4 @@ else
 	METHOD="PROXY:$PROXY:$1:$2,proxyport=${PORT}${PROXYAUTH}"
 fi
 
-exec $SOCAT STDIO "$METHOD"
+exec $SOCAT STDIO,ignoreeof "$METHOD"
-- 
2.39.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-02  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <173FB852EC318283.30239@lists.openembedded.org>
2023-02-02  8:15 ` [OE-core][PATCH] oe-git-proxy: Enable oe-git-proxy for git >= 2.32 Florian Bezdeka
2023-02-01 14:04 Florian Bezdeka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.