| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,19 +1,20 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const fixtures = require('../common/fixtures'); | ||
| 4 | + | ||
| 3 | 5 | if (!common.hasCrypto) | |
| 4 | 6 | common.skip('missing crypto'); | |
| 5 | 7 | ||
| 6 | 8 | const assert = require('assert'); | |
| 7 | 9 | const tls = require('tls'); | |
| 8 | - const fs = require('fs'); | ||
| 9 | 10 | ||
| 10 | 11 | const buf = Buffer.allocUnsafe(10000); | |
| 11 | 12 | let received = 0; | |
| 12 | 13 | const maxChunk = 768; | |
| 13 | 14 | ||
| 14 | 15 | const server = tls.createServer({ | |
| 15 | - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
| 16 | - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
| 16 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 17 | + cert: fixtures.readKey('agent1-cert.pem') | ||
| 17 | 18 | }, function(c) { | |
| 18 | 19 | // Lower and upper limits | |
| 19 | 20 | assert(!c.setMaxSendFragment(511)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments