You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm encountering a panic: feature not supported error when using Souin alongside Mercure. When trying to subscribe to a topic (Mercure SubscribeHandler), a panic occurs, related to singleflight. Environment Details:
Souin version v1.6.50
Mercure version v0.18.1
Caddy version v2.9.1
Go version 1.22.10
golang.org/x/sync/singleflight version v0.10.0 What I have checked so far:
If I remove Souin, Mercure topic subscription works correctly.
The error occurs in singleflight, which is used in SouinBaseHandler.Upstream(), but the stack trace also includes mercure.(*responseController).flush().
The issue disappears when caching with Souin is disabled.
Questions:
Could Souin be affecting Mercure, causing this error?
Does Souin use any singleflight features that might conflict with Mercure’s subscriber handling?
Is there a way to work around this issue, such as adjusting Souin settings?
I’d appreciate any insights! Thanks in advance
Dockerfile
# Set environment variables for PIE
ENV CGO_ENABLED=1 XCADDY_SETCAP=1
ENV XCADDY_GO_BUILD_FLAGS="-ldflags \"-w -s -extldflags '-Wl,-z,stack-size=0x80000'\""
ENV CGO_CFLAGS="-fPIC" \
CGO_LDFLAGS="-pie" \
GOFLAGS="-buildmode=pie"
RUN xcaddy build \
--output /usr/local/bin/frankenphp \
--with github.com/dunglas/frankenphp=./ \
--with github.com/dunglas/frankenphp/caddy=./caddy/ \
# Mercure and Vulcain are included in the official build, but feel free to remove them
--with github.com/dunglas/caddy-cbrotli \
--with github.com/dunglas/mercure/caddy \
--with github.com/dunglas/vulcain/caddy \
# Add extra Caddy modules here
--with github.com/darkweak/souin/plugins/caddy@fa61769ccc4499e8c72d994cd1b866d80bca3f7f \
--with github.com/darkweak/souin@fa61769ccc4499e8c72d994cd1b866d80bca3f7f
Hello @g-ra you're using an old commit of Souin fa61769ccc4499e8c72d994cd1b866d80bca3f7f, I think upgrading to at least v1.7.5 would be enough. By the way you'll have to use a storage from https://github.com/darkweak/storages.
Hi!
I'm encountering a panic: feature not supported error when using Souin alongside Mercure. When trying to subscribe to a topic (Mercure SubscribeHandler), a panic occurs, related to singleflight.
Environment Details:
Souin version v1.6.50
Mercure version v0.18.1
Caddy version v2.9.1
Go version 1.22.10
golang.org/x/sync/singleflight version v0.10.0
What I have checked so far:
If I remove Souin, Mercure topic subscription works correctly.
The error occurs in singleflight, which is used in SouinBaseHandler.Upstream(), but the stack trace also includes mercure.(*responseController).flush().
The issue disappears when caching with Souin is disabled.
Questions:
Could Souin be affecting Mercure, causing this error?
Does Souin use any singleflight features that might conflict with Mercure’s subscriber handling?
Is there a way to work around this issue, such as adjusting Souin settings?
I’d appreciate any insights! Thanks in advance
Dockerfile
trace
The text was updated successfully, but these errors were encountered: