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)
Sun, Mar 30, 10:43 AM
Unknown Object (File)
Sun, Mar 30, 4:46 AM
Unknown Object (File)
Sat, Mar 29, 11:37 PM
Unknown Object (File)
Sat, Mar 29, 3:18 PM
Unknown Object (File)
Mar 9 2025, 4:43 PM
Unknown Object (File)
Feb 18 2025, 4:05 PM
Unknown Object (File)
Feb 18 2025, 4:05 PM
Unknown Object (File)
Feb 18 2025, 4:04 PM
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