Lines Matching refs:client
19 assert.strictEqual(result.client.ALPN, expected.client.ALPN);
56 const client = tls.connect(opt, function() {
57 results[clientIndex].client = { ALPN: client.alpnProtocol };
58 client.end();
61 results[clientIndex].client = { error: err };
86 client: { ALPN: 'a' } });
90 client: { ALPN: 'b' } });
94 client: { ALPN: false } });
112 client: { ALPN: false } });
116 client: { ALPN: false } });
120 client: { ALPN: false } });
141 client: { ALPN: false } });
144 client: { ALPN: false } });
148 client: { ALPN: false } });
163 client: { ALPN: false } });
166 client: { ALPN: false } });
170 client: { ALPN: false } });
177 // Server always selects the client's 2nd preference:
194 client: { ALPN: 'b' } });
198 assert.strictEqual(results[1].client.error.code, 'ECONNRESET');
219 // Callback returns 'http/5' => doesn't match client ALPN => error & reset
221 assert.strictEqual(results[0].client.error.code, 'ECONNRESET');