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

This commit is contained in:
zarzet committed 2026-01-01 21:42:25 +07:00
1 parent ba5c91090c
commit ef62fb218a
5 files changed
+91 -1

No files matched your search

@@ -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) {