-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mobile: quic crashes on start-stop-start cycle #251
Comments
i found that it doesn't crash on iOS |
This is rather strange that it only crashes on quic sockets on android. Regardless given that it happens on a second start, I feel that it's caused by not properly cleaning up when the process is done. Mycelium basically spawns a bunch of background tasks which run forever. Up until now, this was fine, since on desktop, if the node exits, we just exit the whole process. |
FYI, it was fine when i'm working on this PR. So, it broke after/around that time |
@iwanbk I assume this is working properly now? |
i haven't tested it yet because i disable QUIC now. |
@iwanbk any update? |
oh, sorry, i forgot, will do it tomorrow. |
@LeeSmet it still doesn't work,
Do you have other fix than? Anyway, we don't use QUIC on myceliumflut, so this issue doesn't block anything. |
btw, this is what i did to enable #git diff mobile/
diff --git a/mobile/src/lib.rs b/mobile/src/lib.rs
index dd6334b..a0e31ce 100644
--- a/mobile/src/lib.rs
+++ b/mobile/src/lib.rs
@@ -90,7 +90,7 @@ pub async fn start_mycelium(peers: Vec<String>, tun_fd: i32, priv_key: Vec<u8>)
peers: endpoints,
no_tun: false,
tcp_listen_port: DEFAULT_TCP_LISTEN_PORT,
- quic_listen_port: None,
+ quic_listen_port: Some(DEFAULT_TCP_LISTEN_PORT),
peer_discovery_port: None, // disable multicast discovery
#[cfg(any(
target_os = "linux", |
I proposes to close this issue for these reasons:
Except that we want to enable QUIC on android&iphone, which is not the case AFAIK |
On Android (and probably on iOS as well), latest
mycelium
crashed on start-stop-start cycle.steps to reproduce:
Crash message doesn't really point out to quic.
But it is fixed when we force
is_private_net
var
totrue
mycelium/mycelium/src/peer_manager.rs
Line 171 in ee34c14
Do we need QUIC on mobile device?
If no, maybe we can disable it as well.
In case we disable it, i think we still need to fix it because this crashes mean there is some process that is not gfacefully shut down
The text was updated successfully, but these errors were encountered: