mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-20 01:37:50 -05:00
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:
1 parent
0b45a60b04
commit
87695c3250
5 files changed
+32
-12
No files matched your search
@@ -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 = () => {
|
||||
|
||||
Reference in new issue
Block a user