Skip to content

Commit 332cbb4

Browse files
authored
✨ Maintenance: disable Traefik sticky connection and Socket.IO long polling 🚨 (ITISFoundation#3686)
1 parent 1ca5611 commit 332cbb4

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

services/docker-compose.local.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ services:
6969
- "3001:3000"
7070
deploy:
7171
labels:
72-
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.sticky.cookie.secure=false
7372
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_local.service=${SWARM_STACK_NAME}_webserver
7473
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_local.entrypoints=http
7574
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_local.rule=hostregexp(`{host:.+}`) && PathPrefix(`/dev/`)

services/docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,6 @@ services:
251251
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.healthcheck.path=/v0/
252252
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.healthcheck.interval=2000ms
253253
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.healthcheck.timeout=1000ms
254-
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.sticky.cookie=true
255-
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.sticky.cookie.samesite=lax
256-
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.sticky.cookie.httponly=true
257-
- traefik.http.services.${SWARM_STACK_NAME}_webserver.loadbalancer.sticky.cookie.secure=true
258254
- traefik.http.middlewares.${SWARM_STACK_NAME}_webserver_retry.retry.attempts=2
259255
- traefik.http.routers.${SWARM_STACK_NAME}_webserver.service=${SWARM_STACK_NAME}_webserver
260256
- traefik.http.routers.${SWARM_STACK_NAME}_webserver.rule=hostregexp(`{host:.+}`) && (Path(`/`, `/v0`,`/socket.io/`,`/static-frontend-data.json`, `/study/{study_uuid:\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b}`, `/view`, `/#/view`, `/#/error`) || PathPrefix(`/v0/`))

services/static-webserver/client/source/class/osparc/wrapper/WebSocket.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ qx.Class.define("osparc.wrapper.WebSocket", {
171171
"reconnectionDelay": this.getReconnectionDelay(),
172172
"reconnectionAttempts": this.getMaxReconnectionAttemps(),
173173
"forceNew": true,
174-
"query": "client_session_id="+osparc.utils.Utils.getClientSessionID()
174+
"query": "client_session_id="+osparc.utils.Utils.getClientSessionID(),
175+
"transports": ["websocket"]
175176
});
176177
this.setSocket(mySocket);
177178

0 commit comments

Comments
 (0)