Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upDisconnects while connected through VPN #623
Comments
agners
added a commit
to agners/connectbot
that referenced
this issue
Jul 5, 2018
agners
referenced a pull request that will
close
this issue
Jul 5, 2018
Open
Do not drop connections if Android reports no connectivity #624
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
agners commentedJul 4, 2018
I am using Wireguard as a VPN. Wireguard uses UDP and reconnects automatically, TCP connections through it usually stay alive. However, when using ConnectBot connections get disconnected when roaming from WiFi to 4G. This seems to be caused by ConnectBot itself. The ConnectivityManager reports for a short period that there is no connectivity, which causes ConnectBot to kill all connections:
Android nowadays uses SOCK_DESTROY to close sockets depending on which interface the TCP has been useing. It seems that manual handling as it is used in ConnectBot is not ideal and no longer necessary.