varnish (plus) http/2 and websockets, server sent events
Tom Anheyer | BerlinOnline
Tom.Anheyer at berlinonline.de
Fri Jun 20 09:13:54 UTC 2025
Hello,
I don't know if this is specific to varnish plus:
If I enable pipe-mode for server sent events in vcl_recv this way:
if (…) {
set req.http.connection = "close";
return(pipe);
}
the log shows:
- VCL_return pipe
- VCL_call HASH
- VCL_return lookup
- VCL_Error vcl_recv{} returns pipe/connect for HTTP/2 request. Doing pass.
- VCL_call PASS
Is it possible to use server sent events, websockets with http/2 requests?
I've opened a varnish software ticket but I think that's public interest.
tom
--
Tom Anheyer
Senior Developer
BerlinOnline GmbH
Stefan-Heym-Platz 1
10367 Berlin
Germany
Tel.: +49-30-5771180-62
Fax: +49 30 5771180-95
E-Mail: tom.anheyer at berlinonline.de
berlin.de | berlinonline.net
Amtsgericht Berlin-Charlottenburg, HRB 266384
Sitz der Gesellschaft: Berlin, Deutschland
USt.-IdNr.: DE219483549
Geschäftsführung: Andreas Mängel, Katrin Dorgeist
Vorsitzender des Aufsichtsrats: Nicolas Zimmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20250620/073dba81/attachment.bin>
More information about the varnish-misc
mailing list