Skip to content
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

Update ipproxy and db-android #1171

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Update ipproxy and db-android #1171

merged 2 commits into from
Sep 12, 2024

Conversation

atavism
Copy link
Contributor

@atavism atavism commented Sep 12, 2024

No description provided.

@@ -112,8 +112,9 @@ class GoTun2SocksProvider(
val intf: ParcelFileDescriptor? = createBuilder(vpnService, builder)
Logger.debug(TAG, "Running tun2socks")
if (intf != null) {
val tunFd = intf!!.detachFd()
Copy link
Contributor Author

@atavism atavism Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm calling detachFd here now to detach the native fd from the ParcelFileDescriptor and let ipproxy be responsible for closing it when it is shutdown. This addresses this "failed to exchange ownership of file descriptor" error:

09-12 07:17:30.537  6233  7652 D Database: BEGIN
09-12 07:17:30.539  6233  7652 D Database: SAVEPOINT 'f2df8955-d49f-4fa9-8400-04e0442f4370' created
09-12 07:17:30.541  6233  6371 D Database: RELEASE 'f2df8955-d49f-4fa9-8400-04e0442f4370'
09-12 07:17:30.542  6233  7652 D LanternVpnService: Done stopping
09-12 07:17:30.547  6233  6372 E GoLog   : fdsan: failed to exchange ownership of file descriptor: fd 183 is owned by unique_fd 0x7a5708d05c, was expected to be unowned

@atavism
Copy link
Contributor Author

atavism commented Sep 12, 2024

Did some testing, and this is working really well for me on Android 14! Merging..

@atavism atavism merged commit 862c55e into main Sep 12, 2024
1 check passed
@atavism atavism deleted the atavism/update-db-android branch September 12, 2024 15:59
@@ -396,7 +396,7 @@ dependencies {
// from https://github.com/getlantern/opus_android
implementation files('libs/opuslib-release.aar')
implementation 'com.github.getlantern:secrets-android:f6a7a69f3d'
implementation 'com.github.getlantern:db-android:863128d1f8'
implementation 'com.github.getlantern:db-android:d92368c7f'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work, you still need to update messaging-android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants