Streaming (WS) connection periodically drops when running FoundKey behind a reverse proxy #336

Closed
opened 2023-02-02 18:47:04 +00:00 by yanchan09 · 1 comment

When using nginx, the WebSocket connection gets closed every minute because of nginx's proxy read/write timeouts, causing the "Connection to server has been lost" message to show up.

This could be resolved by periodically sending ping/pong frames or messages from the server (or increasing timeouts in nginx, but that's not a real solution).

When using nginx, the WebSocket connection gets closed every minute because of nginx's proxy read/write timeouts, causing the "Connection to server has been lost" message to show up. This could be resolved by periodically sending ping/pong frames or messages from the server (or increasing timeouts in nginx, but that's not a real solution).
Owner

Are you using the recommended nginx settings, specifically the parts about websocket?

Are you using the [recommended nginx settings](https://akkoma.dev/FoundKeyGang/FoundKey/src/branch/main/docs/nginx.md), specifically the parts about websocket?
Sign in to join this conversation.
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#336
No description provided.