8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
There was an error while loading. 8000 Please reload this page.
1 parent 71daa68 commit e68ef29Copy full SHA for e68ef29
test/parallel/test-tls-max-send-fragment.js
@@ -1,19 +1,20 @@
1
'use strict';
2
const common = require('../common');
3
+const fixtures = require('../common/fixtures');
4
+
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
8
const assert = require('assert');
9
const tls = require('tls');
-const fs = require('fs');
10
11
const buf = Buffer.allocUnsafe(10000);
12
let received = 0;
13
const maxChunk = 768;
14
15
const server = tls.createServer({
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
16
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
17
+ cert: fixtures.readKey('agent1-cert.pem')
18
}, function(c) {
19
// Lower and upper limits
20
assert(!c.setMaxSendFragment(511));
0 commit comments