[2.5] Race condition during reconnect can cause websocket to crash and repeatedly disconnect
Bug #1802390 reported by
Mike Pontillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
After supending and resuming my laptop while it was connected to MAAS, I noticed a problem that caused the websocket to repeatedly attempt to reconnect. Each time it reconnected, the following exception was raised on the server:
https:/
This is a race condition in WebSocketProtoc
Related branches
~mpontillo/maas:fix-websocket-race-condition--bug-1802390
Merged
into
maas:master
- Newell Jensen (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 50 lines (+11/-3)2 files modifiedsrc/maasserver/websockets/protocol.py (+6/-2)
src/maasserver/websockets/tests/test_protocol.py (+5/-1)
Changed in maas: | |
status: | Confirmed → Triaged |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.