Client 1.2.0: the game page may open an address in the system browser (openPage); start in den on by default and the Guide login choice; the ping measured over an open connection; no Nagle delay on the relay

This commit is contained in:
Burrowdev committed 2026-10-17 01:13:09 +03:00
1 parent 0b45a60b04
commit 87695c3250
5 files changed
+32 -12

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ module.exports.use = (remoteHost, port, secure) => new Promise(resolve => {
}
const relay = net.createServer(local => {
const remote = secure ? tls.connect({host: remoteHost, port}) : net.connect(port, remoteHost);
// the game sends small messages, often two at once: without these the
// second waits for the first's answer from the other end (Nagle).
local.setNoDelay(true);
remote.setNoDelay(true);
local.pipe(remote);
remote.pipe(local);
const close = () => {