fix: add connection pooling and periodic cleanup to prevent TCP exhaustion

This commit is contained in:
zarzet
2026-01-01 21:42:25 +07:00
parent ba5c91090c
commit ef62fb218a
5 changed files with 91 additions and 1 deletions
@@ -127,6 +127,12 @@ class MainActivity: FlutterActivity() {
}
result.success(response)
}
"cleanupConnections" -> {
withContext(Dispatchers.IO) {
Gobackend.cleanupConnections()
}
result.success(null)
}
else -> result.notImplemented()
}
} catch (e: Exception) {