Page MenuHomePhabricator

[lib] Close tunnelbroker socket when app is in background
ClosedPublic

Authored by angelika on Oct 24 2024, 12:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 2:29 AM
Unknown Object (File)
Sun, Dec 15, 7:56 PM
Unknown Object (File)
Sun, Dec 15, 7:56 PM
Unknown Object (File)
Sun, Dec 15, 7:55 PM
Unknown Object (File)
Sun, Dec 15, 7:50 PM
Unknown Object (File)
Sat, Dec 14, 11:00 PM
Unknown Object (File)
Wed, Dec 11, 5:46 AM
Unknown Object (File)
Sat, Dec 7, 9:58 AM
Subscribers

Details

Summary

This diff closes tunnelbroker socket when app goes to background in order to prevent messages from decrypting twice and weird socket state.

https://linear.app/comm/issue/ENG-9741/tunnelbroker-socket-onmessage-is-triggered-before-re-opening-socket

Test Plan
  1. Run the app
  2. Put the app in the background
  3. Send some DMs to the app
  4. Bring the app to the foreground
  5. Observe in logs that the socket is closed after going to the background and verify that no message is received before closing the socket

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable