File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,13 @@ const bench = common.createBenchmark(main, {
1111
1212var clientConn = 0 ;
1313var serverConn = 0 ;
14- var server ;
1514var dur ;
1615var concurrency ;
1716var running = true ;
1817
19- function main ( { dur, concurrency } ) {
18+ function main ( conf ) {
19+ dur = conf . dur ;
20+ concurrency = conf . concurrency ;
2021 const cert_dir = path . resolve ( __dirname , '../../test/fixtures' ) ;
2122 const options = {
2223 key : fs . readFileSync ( `${ cert_dir } /test_key.pem` ) ,
@@ -25,7 +26,7 @@ function main({ dur, concurrency }) {
2526 ciphers : 'AES256-GCM-SHA384'
2627 } ;
2728
28- server = tls . createServer ( options , onConnection ) ;
29+ const server = tls . createServer ( options , onConnection ) ;
2930 server . listen ( common . PORT , onListening ) ;
3031}
3132
You can’t perform that action at this time.
0 commit comments