Private
Public Access
Minamp 1.4: faster connecting
- Remember the connection that worked and try it alone first next start - Prefer plain HTTP on the home network (each TLS handshake costs seconds on a 600 MHz phone); new setting "Encrypt at home too" to keep HTTPS - Try secure addresses one at a time instead of in parallel, so they don't all time out together - TLS 1.2 with session resumption: reconnects skip the full handshake - Cache certificate chains already verified; changing the trusted roots clears that cache and all TLS sessions - README: updated connection order; test: session resumption check and HandshakeProfile Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58d21b6d68
commit
6fd17bc9c5
9 files changed
+284
-67
No files matched your search
@@ -67,6 +67,19 @@ public class App extends Application {
|
||||
CertVerifier.setRootStore(new AssetRoots(this));
|
||||
Library.preferredVariant = Math.max(0, Math.min(Library.VARIANTS - 1, prefs.getInt("tcVariant", 0)));
|
||||
images = new ImageLoader(this);
|
||||
Server.preferSecureAtHome = prefs.getBoolean("secureHome", false);
|
||||
Server.saver = new Runnable() {
|
||||
public void run() {
|
||||
// remember which connection worked, so next start tries it first
|
||||
final Server s = server;
|
||||
if (s == null) return;
|
||||
handler.post(new Runnable() {
|
||||
public void run() {
|
||||
if (server == s) prefs.edit().putString("server", s.toJson().toString()).commit();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
loadServer();
|
||||
PlayQueue.get().restore(this);
|
||||
|
||||
|
||||
Reference in new issue
Block a user