Skip to content

Logs full of "Unable to send auto-ping for WebSocket connection. WebSocket is closed" #47235

@RobertoUa

Description

@RobertoUa

Describe the bug

We're using websockets-next with quarkus.websockets-next.server.auto-ping-interval=10s.
And sometimes it starts spamming logs with
Unable to send auto-ping for WebSocket connection [endpointId=..., path=/api/v1/..., id=...]: io.vertx.core.impl.NoStackTraceThrowable: WebSocket is closed

It seems that the timer sometimes is not canceled on connection close. It's even possible that it's even worse and no close callbacks are called or there's some connection leak.
I have logs on each type of callbacks, and I only see @OnOpen and then WebSocket is closed is right after that. No @OnError or @OnClose

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions