Re: haproxy: enable quic support

2023-10-12 Thread Theo Buehler
> +MAKE_FLAGS +=USE_OPENSSL=1 USE_PCRE2=1 USE_QUIC=1 USE_ZLIB=1 V=1
> 
> to keep things sorted?

Yes, already fixed in my tree. Thanks

> 
> either way, ok danj@
> 
> btw, is there a quick way to test it? (I don't know if curl supports
> quic?)

It does: curl --http3



Re: haproxy: enable quic support

2023-10-12 Thread Daniel Jakots
On Thu, 12 Oct 2023 08:29:50 +0200, Theo Buehler 
wrote:

> Quite a bit of work was invested in upstream and in libssl to make
> QUIC work. In view of this, I think it should be enabled.
> 
> You still have to opt in by an explicit quic4@: or quic6@: prefix and
> an alpn of h3, as explained here:
> 
> https://www.haproxy.com/blog/how-to-enable-quic-load-balancing-on-haproxy
> 
> At least this way people who want to do so can use it without
> recompiling.
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/net/haproxy/Makefile,v
> retrieving revision 1.108
> diff -u -p -r1.108 Makefile
> --- Makefile  27 Sep 2023 14:18:08 -  1.108
> +++ Makefile  12 Oct 2023 06:21:33 -
> @@ -4,6 +4,7 @@ DISTNAME =haproxy-2.8.3
>  CATEGORIES = net www
>  HOMEPAGE =   https://www.haproxy.org/
>  MAINTAINER = Daniel Jakots 
> +REVISION =   0
>  
>  # GPLv2
>  PERMIT_PACKAGE = Yes
> @@ -22,7 +23,7 @@ SUBST_VARS =HAPROXYCONF HAPROXYSTATE \
>  USE_GMAKE =  Yes
>  MAKE_FLAGS +=CPU_CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
>  MAKE_FLAGS +=CC="${CC}" LD="${CC}" TARGET="openbsd"
> -MAKE_FLAGS +=USE_OPENSSL=1 USE_PCRE2=1 USE_ZLIB=1 V=1
> +MAKE_FLAGS +=USE_OPENSSL=1 USE_PCRE2=1 USE_ZLIB=1 USE_QUIC=1

maybe

+MAKE_FLAGS +=  USE_OPENSSL=1 USE_PCRE2=1 USE_QUIC=1 USE_ZLIB=1 V=1

to keep things sorted?

either way, ok danj@

btw, is there a quick way to test it? (I don't know if curl supports
quic?)

Cheers,
Daniel



haproxy: enable quic support

2023-10-11 Thread Theo Buehler
Quite a bit of work was invested in upstream and in libssl to make QUIC
work. In view of this, I think it should be enabled.

You still have to opt in by an explicit quic4@: or quic6@: prefix and an
alpn of h3, as explained here:

https://www.haproxy.com/blog/how-to-enable-quic-load-balancing-on-haproxy

At least this way people who want to do so can use it without recompiling.

Index: Makefile
===
RCS file: /cvs/ports/net/haproxy/Makefile,v
retrieving revision 1.108
diff -u -p -r1.108 Makefile
--- Makefile27 Sep 2023 14:18:08 -  1.108
+++ Makefile12 Oct 2023 06:21:33 -
@@ -4,6 +4,7 @@ DISTNAME =  haproxy-2.8.3
 CATEGORIES =   net www
 HOMEPAGE = https://www.haproxy.org/
 MAINTAINER =   Daniel Jakots 
+REVISION = 0
 
 # GPLv2
 PERMIT_PACKAGE =   Yes
@@ -22,7 +23,7 @@ SUBST_VARS =  HAPROXYCONF HAPROXYSTATE \
 USE_GMAKE =Yes
 MAKE_FLAGS +=  CPU_CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 MAKE_FLAGS +=  CC="${CC}" LD="${CC}" TARGET="openbsd"
-MAKE_FLAGS +=  USE_OPENSSL=1 USE_PCRE2=1 USE_ZLIB=1 V=1
+MAKE_FLAGS +=  USE_OPENSSL=1 USE_PCRE2=1 USE_ZLIB=1 USE_QUIC=1 V=1
 MAKE_FLAGS +=  USE_LIBATOMIC=
 
 FAKE_FLAGS +=  DOCDIR="${PREFIX}/share/doc/haproxy"