Closed Bug 1563690 Opened 5 years ago Closed 5 years ago

Hold a list of Connection instead of Sessions from Target

Categories

(Remote Protocol :: Agent, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

As connection already holds a list of Sessions, it is a bit misleading to also store a list of Session form Target, whereas at the end we only care about the Connection from Target.

Assignee: nobody → poirot.alex
Blocks: 1544458

Connection already saves the list of Session, so it is more natural
to save it only once there and instead directly close the connections
from Target. Each connection is going to cleanup all related sessions.

I also stop automatically registering the session to the connection from Session constructor,
it felt not explicit enough.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ab61d517c2e Make Target class save a list of Connection rather than Session. r=remote-protocol-reviewers,jdescottes
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: