Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket traffic is not detected as activity #21

Open
heffer opened this issue Mar 7, 2022 · 8 comments · May be fixed by #275
Open

Websocket traffic is not detected as activity #21

heffer opened this issue Mar 7, 2022 · 8 comments · May be fixed by #275
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@heffer
Copy link

heffer commented Mar 7, 2022

Hello,
I'm using webtop / guacamole as ondemand service.
If there is (after an initial HTTP request) only traffic activity via a websocket channel, this is not considered as activity. After the configured timeout the service is scale down (due to "inactivity"), even if the connection is actively used.
Is there some configuration setting I'm missing to consider this?

Best regards
Sven

@acouvreur
Copy link
Owner

The websocket activity is not handled by the plugin indeed. If you have any clue on how we could fix that I'll be happy to help!

@oiBio
Copy link

oiBio commented Mar 30, 2022

Just stumbled across this nice plugin. We host an Blazor Server App and could also use this functionality. Unfortunately I don't have an approach to tackle the problem. I'm still relatively new with Docker/Traeffik and co.

However, IIS Server from Microsoft has a similar functionality - which also recognises active WebSocket connections, but I have no idea how they solved this exactly.

@acouvreur
Copy link
Owner

acouvreur commented Mar 30, 2022

The WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request.

Thus I'd need to create a TCP Middleware and not an HTTP Middleware as the current one is.

To my knowledge, it's not yet possible to create custom TCP Middleware as plugins.

Although TCP Middleware are a thing https://github.com/traefik/traefik/tree/master/pkg/middlewares/tcp

Maybe I'll open an issue about it.

@DNF-SaS
Copy link

DNF-SaS commented Feb 9, 2023

Looking forward to WebSocket-handling. Would be a really great feature for hosting Blazor Server.

@tomaszduda23
Copy link
Contributor

@acouvreur you could implement websocket support in that way #242

Copy link

github-actions bot commented Feb 8, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Feb 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
@acouvreur acouvreur removed the Stale label Feb 13, 2024
@acouvreur
Copy link
Owner

With the work in progress from @tomaszduda23, we'll keep this issue opened

@acouvreur acouvreur reopened this Feb 13, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 15, 2024
DrummyFloyd added a commit to DrummyFloyd/sablier that referenced this issue Apr 13, 2024
DrummyFloyd added a commit to DrummyFloyd/sablier that referenced this issue Apr 13, 2024
DrummyFloyd added a commit to DrummyFloyd/sablier that referenced this issue Apr 13, 2024
DrummyFloyd added a commit to DrummyFloyd/sablier that referenced this issue Apr 13, 2024
@DrummyFloyd DrummyFloyd linked a pull request Apr 13, 2024 that will close this issue
DrummyFloyd added a commit to DrummyFloyd/sablier that referenced this issue Apr 13, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
@acouvreur acouvreur reopened this Apr 14, 2024
@github-actions github-actions bot removed the Stale label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants