Juju doesn't send a correct close control frame when closing websocket connections.

Bug #1961192 reported by Simon Richardson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

Closing a websocket that is initiated from the server doesn't send a status. Any websocket closure that doesn't have a status returns a 1005 code, which is classified as an abnormal closure. This can be seen in pylibjuju in quite a few places and is considered as a bad actor.

See websocket documentation for more information: https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5

Caner Derici (cderici)
Changed in juju:
assignee: nobody → Caner Derici (cderici)
Revision history for this message
Caner Derici (cderici) wrote :

Just to clarify here, the code we see in the client errors is 1006, which indicates that Juju doesn't even send the close control frame. (1005 is for the case where we do have a closing frame, but no status code in it)

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
Ian Booth (wallyworld)
Changed in juju:
assignee: Caner Derici (cderici) → nobody
milestone: 2.9-next → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.