fantom-polycall 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,209 @@
1
+ #!/usr/bin/env node
2
+ // Tests fantom-polycall against the REAL Polycall core.
3
+ //
4
+ // node scripts/consumer-test.mjs --source build the pod and run `fant polycall` in this checkout
5
+ // node scripts/consumer-test.mjs [file.tgz] the artifact users receive:
6
+ // npm pack (or the given tarball) -> npm install into a clean project
7
+ // outside this checkout -> build the pod from node_modules/fantom-polycall
8
+ // there and run the packaged example
9
+ //
10
+ // Required environment:
11
+ // POLYCALL_LIB_DIR directory with libpolycall.so.1 (Linux) / polycall.lib (Windows)
12
+ // POLYCALL_BIN_DIR Windows: directory with polycall.dll (default: POLYCALL_LIB_DIR)
13
+ // POLYCALL_CLI the polycall executable (for the RPC round trip)
14
+ // FAN_HOME the Fantom installation (fantom-1.0.84), used for bin/fan and bin/fant
15
+ // JAVA_HOME a JDK >= 22 (java.lang.foreign); the Fantom launcher runs $JAVA_HOME/bin/java
16
+ // Optional: KEEP=1 (keep the temporary directories).
17
+ //
18
+ // Nothing is written into FAN_HOME: pods are built into a util::PathEnv work
19
+ // directory (FAN_ENV / FAN_ENV_PATH) inside a fresh temporary directory, so a
20
+ // second run never sees a stale pod.
21
+
22
+ import { spawn, spawnSync } from 'node:child_process';
23
+ import fs from 'node:fs';
24
+ import os from 'node:os';
25
+ import path from 'node:path';
26
+ import process from 'node:process';
27
+ import { fileURLToPath } from 'node:url';
28
+
29
+ const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
30
+ const libDir = process.env.POLYCALL_LIB_DIR;
31
+ const binDir = process.env.POLYCALL_BIN_DIR || libDir;
32
+ const cli = process.env.POLYCALL_CLI;
33
+ const fanHome = process.env.FAN_HOME;
34
+ const javaHome = process.env.JAVA_HOME;
35
+ const windows = process.platform === 'win32';
36
+
37
+ function die(message) {
38
+ console.error(`consumer-test: ${message}`);
39
+ process.exit(1);
40
+ }
41
+ if (!libDir || !fs.existsSync(libDir)) die('set POLYCALL_LIB_DIR to the directory with libpolycall.so.1 / polycall.lib');
42
+ if (!cli || !fs.existsSync(cli)) die('set POLYCALL_CLI to the polycall executable');
43
+ if (!fanHome || !fs.existsSync(path.join(fanHome, 'lib', 'fan', 'sys.pod'))) die('set FAN_HOME to the Fantom installation (the directory with bin/ and lib/fan/)');
44
+ const java = javaHome && path.join(javaHome, 'bin', windows ? 'java.exe' : 'java');
45
+ if (!java || !fs.existsSync(java)) die('set JAVA_HOME to a JDK >= 22 (java.lang.foreign is required)');
46
+ const fan = path.join(fanHome, 'bin', windows ? 'fan.bat' : 'fan');
47
+ const fant = path.join(fanHome, 'bin', windows ? 'fant.bat' : 'fant');
48
+
49
+ // The binding opens the shared library at run time: POLYCALL_LIBRARY names it.
50
+ const coreDir = windows ? binDir : libDir;
51
+ const libraryNames = windows ? ['polycall.dll'] : ['libpolycall.so.1', 'libpolycall.so', 'libpolycall.1.dylib', 'libpolycall.dylib'];
52
+ const hasCore = (dir) => libraryNames.some((name) => fs.existsSync(path.join(dir, name)));
53
+ const coreFile = libraryNames.map((name) => path.join(coreDir, name)).find((file) => fs.existsSync(file));
54
+ if (!coreFile) die(`no ${libraryNames[0]} in ${coreDir}`);
55
+
56
+ // --enable-native-access for java.lang.foreign; the Fantom launchers have no
57
+ // JAVA_OPTS, but every JDK `java` launcher honours JDK_JAVA_OPTIONS.
58
+ const javaOptions = [process.env.JDK_JAVA_OPTIONS, '--enable-native-access=ALL-UNNAMED'].filter(Boolean).join(' ');
59
+ function fanEnv(workDir, extra) {
60
+ return { ...process.env, JAVA_HOME: javaHome, FAN_HOME: fanHome, JDK_JAVA_OPTIONS: javaOptions,
61
+ FAN_ENV: 'util::PathEnv', FAN_ENV_PATH: workDir, ...extra };
62
+ }
63
+ // An environment in which the core cannot be found by any route: every
64
+ // POLYCALL_* variable unset and no directory holding the core on PATH.
65
+ function withoutCore(env) {
66
+ const out = { ...env };
67
+ for (const key of Object.keys(out)) {
68
+ const upper = key.toUpperCase();
69
+ if (upper.startsWith('POLYCALL_') || ['LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH'].includes(upper)) delete out[key];
70
+ else if (upper === 'PATH') out[key] = out[key].split(path.delimiter).filter((dir) => dir && !hasCore(dir)).join(path.delimiter);
71
+ }
72
+ return out;
73
+ }
74
+
75
+ // .bat / .cmd launchers need a shell on Windows: quote every argument.
76
+ const quote = (arg) => (/[\s"&|<>^()]/.test(arg) ? `"${arg.replace(/"/g, '\\"')}"` : arg);
77
+ function run(command, args, options = {}) {
78
+ const shown = `${path.basename(command)} ${args.join(' ')}`;
79
+ const shell = windows && /\.(bat|cmd)$/i.test(command);
80
+ const result = shell
81
+ ? spawnSync([command, ...args].map(quote).join(' '), [], { encoding: 'utf8', windowsHide: true, maxBuffer: 64 << 20, shell: true, ...options })
82
+ : spawnSync(command, args, { encoding: 'utf8', windowsHide: true, maxBuffer: 64 << 20, ...options });
83
+ const output = `${result.stdout || ''}${result.stderr || ''}`;
84
+ if (result.error) die(`${shown}: ${result.error.message}`);
85
+ return { status: result.status, output, shown };
86
+ }
87
+ function expectOk(result) {
88
+ if (result.status !== 0) die(`${result.shown} exited ${result.status}\n${result.output}`);
89
+ return result.output;
90
+ }
91
+ function expectIn(text, needle, what) {
92
+ if (!text.includes(needle)) die(`${what}: expected to find ${JSON.stringify(needle)} in\n${text}`);
93
+ }
94
+ const missingCoreText = 'Set the environment variable POLYCALL_LIBRARY to the core\'s shared library';
95
+ const npmRun = (args, cwd) => run(windows ? 'npm.cmd' : 'npm', args, { cwd });
96
+
97
+ const work = fs.mkdtempSync(path.join(os.tmpdir(), 'fantom-polycall-'));
98
+ function finish(message) {
99
+ if (process.env.KEEP === '1') console.log(`kept ${work}`);
100
+ else fs.rmSync(work, { recursive: true, force: true, maxRetries: 10, retryDelay: 200 });
101
+ console.log(message);
102
+ }
103
+
104
+ const javaVersion = (run(java, ['-version']).output.split(/\r?\n/).find((line) => /version/.test(line) && !/^NOTE/.test(line)) || '').trim();
105
+ const fanVersion = run(fan, ['-version'], { env: fanEnv(work) }).output.match(/fan\.version:\s*(\S+)/);
106
+ console.log(`fantom ${fanVersion ? fanVersion[1] : '?'}, ${javaVersion}, ${process.platform}/${process.arch}, node ${process.version}`);
107
+ console.log(`core ${expectOk(run(cli, ['--version'])).trim()}`);
108
+
109
+ if (process.argv[2] === '--source') {
110
+ // build the pod from this checkout into a fresh PathEnv, then run its tests
111
+ const env = fanEnv(work, { POLYCALL_LIBRARY: coreFile });
112
+ expectIn(expectOk(run(fan, ['build.fan'], { cwd: root, env })), 'BUILD SUCCESS', 'fan build.fan');
113
+ if (!fs.existsSync(path.join(work, 'lib', 'fan', 'polycall.pod'))) die('the build did not write polycall.pod into the PathEnv');
114
+ const tests = expectOk(run(fant, ['polycall'], { cwd: root, env }));
115
+ const expected = (fs.readFileSync(path.join(root, 'test', 'PolycallTest.fan'), 'utf8').match(/^\s*Void test\w+\(\)/gm) || []).length;
116
+ const summary = tests.split(/\r?\n/).find((line) => line.includes('All tests passed!')) || '';
117
+ if (expected === 0 || !summary.includes(`${expected} methods`)) die(`expected ${expected} passing test methods\n${tests}`);
118
+ console.log(`source: ${summary.replace(/^\*+\s*/, '').trim()}`);
119
+
120
+ // the same tests without a core: they fail, and say what to set
121
+ const missing = run(fant, ['polycall'], { cwd: root, env: withoutCore(env) });
122
+ if (missing.status === 0) die('the tests must fail when the core cannot be loaded');
123
+ expectIn(missing.output, missingCoreText, 'missing-core diagnostic');
124
+ console.log('source: missing core -> actionable diagnostic');
125
+ finish('source: OK');
126
+ process.exit(0);
127
+ }
128
+
129
+ // ---- the packed artifact, in a clean project outside the checkout ----------
130
+ let tarball = process.argv[2] ? path.resolve(process.argv[2]) : null;
131
+ if (!tarball) {
132
+ const packed = expectOk(npmRun(['pack', '--silent', '--pack-destination', work], root)).trim().split(/\r?\n/).pop();
133
+ tarball = path.join(work, packed);
134
+ }
135
+ if (!fs.existsSync(tarball)) die(`no tarball at ${tarball}`);
136
+ console.log(`tarball ${path.basename(tarball)}`);
137
+
138
+ const project = path.join(work, 'project');
139
+ fs.mkdirSync(project);
140
+ fs.writeFileSync(path.join(project, 'package.json'), '{"name":"fantom-polycall-consumer","private":true}\n');
141
+ expectOk(npmRun(['install', '--no-audit', '--no-fund', tarball], project));
142
+ const installed = path.join(project, 'node_modules', 'fantom-polycall');
143
+ if (path.relative(root, installed).split(path.sep)[0] !== '..') die('the consumer project must be outside the checkout');
144
+
145
+ // The documented steps: build the pod from node_modules/fantom-polycall into
146
+ // the project's PathEnv, copy the packaged example next to node_modules.
147
+ const env = fanEnv(project, { POLYCALL_LIBRARY: coreDir });
148
+ expectIn(expectOk(run(fan, [path.join('node_modules', 'fantom-polycall', 'build.fan')], { cwd: project, env })), 'BUILD SUCCESS', 'pod build');
149
+ const pod = path.join(project, 'lib', 'fan', 'polycall.pod');
150
+ if (!fs.existsSync(pod)) die(`the build did not write ${pod}`);
151
+ fs.cpSync(path.join(installed, 'examples', 'consumer'), project, { recursive: true });
152
+
153
+ // 1. known-good and known-bad configuration files, written by this test
154
+ const good = path.join(work, 'good.polycallrc');
155
+ const bad = path.join(work, 'bad.polycallrc');
156
+ fs.writeFileSync(good, 'log_level=info\nmax_connections=100\nnetwork_timeout=5000\ntls_enabled=false\n');
157
+ fs.writeFileSync(bad, 'this is not = a = valid line\n');
158
+
159
+ // 2. a real runtime for the RPC round trip
160
+ const endpointFile = path.join(work, 'endpoint');
161
+ const runtime = spawn(cli, ['start', '--endpoint', '127.0.0.1:0', '--endpoint-file', endpointFile],
162
+ { cwd: work, stdio: 'ignore', windowsHide: true });
163
+ let endpoint = '';
164
+ for (let i = 0; i < 400 && !endpoint; i += 1) {
165
+ await new Promise((resolve) => setTimeout(resolve, 25));
166
+ if (fs.existsSync(endpointFile)) {
167
+ const text = fs.readFileSync(endpointFile, 'utf8').trim();
168
+ if (text.includes(':')) endpoint = text;
169
+ }
170
+ }
171
+ let failure = null;
172
+ try {
173
+ if (!endpoint) throw new Error('polycall start did not report an endpoint');
174
+
175
+ // 3. the documented command: run the example against the pod built from node_modules
176
+ const result = run(fan, ['consumer.fan', good, bad, endpoint], { cwd: project, env });
177
+ if (result.status !== 0) throw new Error(`${result.shown} exited ${result.status}\n${result.output}`);
178
+ const out = result.output;
179
+ expectIn(out, 'binding ABI 1', 'ABI line');
180
+ expectIn(out, `OK ${good}`, 'known-good config');
181
+ expectIn(out, 'REFUSED config', 'known-bad config');
182
+ expectIn(out, 'POLYCALL_E_CONFIG', 'known-bad status text');
183
+ expectIn(out, 'bad.polycallrc:1: malformed', 'known-bad detail');
184
+ expectIn(out, 'peer listening on 127.0.0.1:', 'peer lifecycle');
185
+ expectIn(out, 'call debug.echo -> {"echo":{"fantom":true}}', 'RPC round trip');
186
+ expectIn(out, 'all checks passed', 'example result');
187
+ console.log(out.split(/\r?\n/).filter((line) => /^(core|OK|REFUSED|peer|call|all checks)/.test(line)).join('\n'));
188
+
189
+ // 4. a bad input must make the example itself fail: swap good and bad
190
+ const swapped = run(fan, ['consumer.fan', bad, good], { cwd: project, env });
191
+ if (swapped.status === 0) throw new Error('the example accepted a malformed file as known-good');
192
+ expectIn(swapped.output, 'POLYCALL_E_CONFIG', 'swapped run');
193
+ console.log('consumer: malformed file as known-good -> example fails');
194
+
195
+ // 5. a missing core is an actionable diagnostic, not a loader riddle
196
+ const missing = run(fan, ['consumer.fan', good, bad], { cwd: project, env: withoutCore(env) });
197
+ if (missing.status === 0) throw new Error('the example must not run without the Polycall core');
198
+ expectIn(missing.output, 'the Polycall core library could not be loaded', 'missing-core diagnostic');
199
+ expectIn(missing.output, missingCoreText, 'missing-core diagnostic');
200
+ if (missing.output.includes('all checks passed')) throw new Error('the example ran without the core');
201
+ console.log('consumer: missing core -> actionable diagnostic');
202
+ } catch (error) {
203
+ failure = error;
204
+ } finally {
205
+ spawnSync(cli, ['stop', '--endpoint', endpoint], { cwd: work, windowsHide: true, timeout: 10000 });
206
+ runtime.kill();
207
+ }
208
+ if (failure) die(failure.message);
209
+ finish('consumer: tarball-tested OK');
@@ -0,0 +1,214 @@
1
+ //
2
+ // Integration tests: every call goes to the REAL Polycall core that
3
+ // POLYCALL_LIBRARY (or the system loader) provides. Nothing is mocked.
4
+ // `fant polycall` must run from the package root: fixture paths are
5
+ // relative to the working directory, as the core resolves them.
6
+ //
7
+
8
+ using concurrent
9
+
10
+ class PolycallTest : Test
11
+ {
12
+ static const Str good := "test/fixtures/good.polycallrc"
13
+ static const Str bad := "test/fixtures/bad.polycallrc"
14
+ static const Str unknownKey := "test/fixtures/unknown-key.polycallrc"
15
+ static const Str missing := "test/fixtures/no-such-file.polycallrc"
16
+
17
+ ** Run `f`, expect a PolycallErr with `status`, and return it.
18
+ PolycallErr verifyStatus(Status status, |->| f)
19
+ {
20
+ try
21
+ {
22
+ f()
23
+ }
24
+ catch (PolycallErr e)
25
+ {
26
+ verifyEq(e.status, status, e.msg)
27
+ verifyEq(e.code, status.code)
28
+ return e
29
+ }
30
+ fail("expected ${status.cName}, nothing was thrown")
31
+ throw Err("unreachable")
32
+ }
33
+
34
+ Void testLibrary()
35
+ {
36
+ verifyEq(Polycall.libraryAbiVersion, 1)
37
+ Polycall.checkAbi
38
+
39
+ v := Polycall.version
40
+ verify(v.size >= 5, v)
41
+ verify(v.split('.').size >= 3, v)
42
+ verifyStatus(Status.tooLarge) |->| { Polycall.version(2) }
43
+
44
+ verifyEq(Polycall.strerror(Status.timeout.code), "POLYCALL_E_TIMEOUT: deadline exceeded")
45
+ verify(Polycall.strerror(Status.ok.code).startsWith("POLYCALL_OK"))
46
+ }
47
+
48
+ Void testStatusMapping()
49
+ {
50
+ names := ["INVALID_ARGUMENT", "NO_MEMORY", "INVALID_HANDLE", "TIMEOUT", "TRANSPORT", "PROTOCOL",
51
+ "NOT_FOUND", "AUTH", "REMOTE", "TOO_LARGE", "BUSY", "CANCELLED",
52
+ "CONFIG", "ADDRESS_IN_USE", "UNSUPPORTED", "PERMISSION", "CLOSED", "INTERNAL"]
53
+ names.each |name, i|
54
+ {
55
+ code := -(i + 1)
56
+ s := Status.fromCode(code)
57
+ verifyEq(s.code, code)
58
+ verifyEq(s.cName, "POLYCALL_E_$name")
59
+ verify(Polycall.strerror(code).startsWith("POLYCALL_E_${name}: "), Polycall.strerror(code))
60
+ verifyEq(PolycallErr(code).status, s)
61
+ }
62
+ verifyEq(Status.fromCode(0), Status.ok)
63
+ verifyEq(Status.fromCode(-19), Status.unknown)
64
+ verifyEq(PolycallErr(-19).code, -19)
65
+ }
66
+
67
+ Void testRunConfigGood()
68
+ {
69
+ Polycall.runConfig(good, ConfigMode.validate)
70
+ Polycall.runConfig(good, ConfigMode.run)
71
+ verifyEq(Polycall.lastError, "")
72
+ }
73
+
74
+ Void testRunConfigBad()
75
+ {
76
+ e := verifyStatus(Status.config) |->| { Polycall.runConfig(bad) }
77
+ verify(e.detail.contains("bad.polycallrc"), e.detail)
78
+ verify(e.detail.contains("malformed"), e.detail)
79
+ verify(e.msg.startsWith("POLYCALL_E_CONFIG: "), e.msg)
80
+ // the thread's detail is still there after the error was built
81
+ verify(Polycall.lastError.contains("bad.polycallrc:1: malformed key=value entry"), Polycall.lastError)
82
+ }
83
+
84
+ Void testRunConfigEdges()
85
+ {
86
+ verifyStatus(Status.notFound) |->| { Polycall.runConfig(missing, ConfigMode.run) }
87
+ verifyStatus(Status.invalidArgument) |->| { Polycall.runConfig("", ConfigMode.run) }
88
+ Polycall.runConfig(unknownKey, ConfigMode.validate)
89
+ verifyStatus(Status.config) |->| { Polycall.runConfig(unknownKey, ConfigMode.run) }
90
+ }
91
+
92
+ Void testDescribe()
93
+ {
94
+ json := Polycall.describe(good)
95
+ verify(json.size > 2 && json[0] == '{' && json[-1] == '}', json)
96
+ verify(json.contains("\"log_level\""), json)
97
+
98
+ e := verifyStatus(Status.tooLarge) |->| { Polycall.describe(good, 8) }
99
+ verifyEq(e.needed, json.size + 1)
100
+ verifyEq(Polycall.describe(good, json.size + 1), json)
101
+ verifyStatus(Status.notFound) |->| { Polycall.describe(missing) }
102
+ }
103
+
104
+ Void testCall()
105
+ {
106
+ verifyStatus(Status.invalidArgument) |->| { Polycall.call("not-an-endpoint", "debug", "echo", null, 1000) }
107
+ verifyStatus(Status.invalidArgument) |->| { Polycall.call("127.0.0.1:9", "debug", "echo", "{not json", 1000) }
108
+ verifyStatus(Status.invalidArgument) |->| { Polycall.call("127.0.0.1:9", "debug", "echo", null, 0) }
109
+
110
+ // nothing listening: use a port we just released
111
+ probe := Peer.open("probe", "127.0.0.1:0")
112
+ dead := probe.endpoint
113
+ probe.close
114
+ reply := Polycall.callRaw(dead, "debug", "echo", "1", 1000)
115
+ verifyEq(reply.status, Status.transport.code)
116
+ verifyEq(reply.toStatus, Status.transport)
117
+ verifyStatus(Status.transport) |->| { Polycall.call(dead, "debug", "echo", "1", 1000) }
118
+ }
119
+
120
+ Void testPeerExchange()
121
+ {
122
+ alpha := Peer.open("alpha", "127.0.0.1:0", "s3cret")
123
+ beta := Peer.open("beta", "127.0.0.1:0", "s3cret")
124
+ try
125
+ {
126
+ verifyEq(alpha.nodeId, "alpha")
127
+ betaEp := beta.endpoint
128
+ verify(betaEp.startsWith("127.0.0.1:"), betaEp)
129
+
130
+ alpha.register("beta", betaEp)
131
+ verify(alpha.list.contains("\"beta\""), alpha.list)
132
+ // receiving never registers the sender: beta's registry stays empty
133
+ verifyEq(beta.list, "{}")
134
+
135
+ alpha.ping("beta", 5000)
136
+
137
+ payload := Buf().write(0).write(1).write(2).write(0).write(0xff).write('z').write(0)
138
+ alpha.send("beta", payload, "m-1", 5000)
139
+ alpha.send("beta", payload, "m-1", 5000) // duplicate id: stored once
140
+
141
+ e := verifyStatus(Status.tooLarge) |->| { beta.recv(0, 2) }
142
+ verifyEq(e.needed, payload.size)
143
+
144
+ msg := beta.recv(5000, 64)
145
+ verifyEq(msg.payload.toHex, payload.toHex)
146
+ verifyEq(msg.payload.size, 7)
147
+ verifyEq(msg.sender, "alpha")
148
+ verifyEq(msg.id, "m-1")
149
+ verifyStatus(Status.timeout) |->| { beta.recv(0) }
150
+
151
+ verify(beta.health.contains("\"beta\""), beta.health)
152
+
153
+ alpha.unregister("beta")
154
+ verifyStatus(Status.notFound) |->| { alpha.unregister("beta") }
155
+ }
156
+ finally
157
+ {
158
+ alpha.close
159
+ beta.close
160
+ }
161
+ }
162
+
163
+ Void testPeerAuthAndOversize()
164
+ {
165
+ a := Peer.open("a", "127.0.0.1:0", "one")
166
+ b := Peer.open("b", "127.0.0.1:0", "two")
167
+ try
168
+ {
169
+ a.register("b", b.endpoint)
170
+ verifyStatus(Status.auth) |->| { a.send("b", "hello".toBuf, null, 5000) }
171
+
172
+ huge := Buf(Polycall.peerMaxPayload + 1)
173
+ huge.fill('x', Polycall.peerMaxPayload + 1)
174
+ verifyEq(huge.size, Polycall.peerMaxPayload + 1)
175
+ verifyStatus(Status.tooLarge) |->| { a.send("b", huge, null, 5000) }
176
+ }
177
+ finally
178
+ {
179
+ a.close
180
+ b.close
181
+ }
182
+ }
183
+
184
+ Void testPeerCancel()
185
+ {
186
+ node := Peer.open("waiter")
187
+ try
188
+ {
189
+ // a recv blocked in another thread is woken by cancel
190
+ future := Actor(ActorPool()) |Peer p->Obj?|
191
+ {
192
+ try { p.recv(Polycall.waitForever); return "received" }
193
+ catch (PolycallErr e) return e.status.name
194
+ }.send(node)
195
+ Actor.sleep(200ms)
196
+ node.cancel
197
+ verifyEq(future.get(10sec), "cancelled")
198
+ }
199
+ finally node.close
200
+ }
201
+
202
+ Void testPeerCleanup()
203
+ {
204
+ node := Peer.open("gone")
205
+ verifyEq(node.endpoint, "") // send-only
206
+ node.close
207
+ verifyStatus(Status.invalidHandle) |->| { node.close }
208
+ verifyStatus(Status.invalidHandle) |->| { node.cancel }
209
+ verifyStatus(Status.invalidHandle) |->| { node.endpoint }
210
+
211
+ verifyStatus(Status.invalidArgument) |->| { Peer.open("bad id!") }
212
+ verifyStatus(Status.config) |->| { Peer.open("open", "0.0.0.0:0") }
213
+ }
214
+ }
@@ -0,0 +1 @@
1
+ this is not = a = valid line
@@ -0,0 +1,4 @@
1
+ log_level=info
2
+ max_connections=100
3
+ network_timeout=5000
4
+ tls_enabled=false
@@ -0,0 +1,2 @@
1
+ log_level=info
2
+ not_a_polycall_key=1