equalitie / ouisync

A secure peer-to-peer file synchronization app.
https://ouisync.net
Mozilla Public License 2.0
49 stars 9 forks source link

Peer screen flickering on Linux #149

Closed IvanaBlzvc closed 10 months ago

IvanaBlzvc commented 11 months ago
inetic commented 11 months ago

So the problem seems to be that when two replicas find each other but they don't share a repository (yet), then the timeout and socket close mechanism doesn't seem to work. To reproduce:

madadam commented 11 months ago

Related #129

inetic commented 11 months ago

This means we have at least two problems:

  1. The timeout mechanism works only on the virtual connections and doesn't work when two replicas don't share a repository
  2. When the Android app is closed, the library is likely killed right a way and it doesn't give the QUIC library module enough time to send closing packets

Of the two, the #1 is is the most important one. The #2 is a nice to have to have the connections closed as soon as possible, but #2 can fail even if implemented correctly, that's why #1 is a must.

inetic commented 10 months ago

Should be fixed by merge https://github.com/equalitie/ouisync/commit/58747ddea08c417f52f7f4042321888e1040528a