@@ -6,6 +6,7 @@ import * as testsUtils from './tests/utils';
6
6
import { promise } from './src/utils' ;
7
7
import { SendInfo } from './src/native/types' ;
8
8
import { clearTimeout } from 'timers' ;
9
+ import path from 'path' ;
9
10
10
11
11
12
async function main ( ) {
@@ -41,8 +42,7 @@ async function main () {
41
42
errorP ,
42
43
socketBind ( localPort )
43
44
] )
44
- console . log ( 'bound' ) ;
45
-
45
+ console . log ( 'bound' , localPort ) ;
46
46
const config = buildQuicheConfig ( {
47
47
verifyPeer : false ,
48
48
applicationProtos : [
@@ -64,7 +64,7 @@ async function main () {
64
64
65
65
enableEarlyData : false ,
66
66
grease : false ,
67
- logKeys : " tmp/key .log",
67
+ logKeys : path . resolve ( path . join ( __dirname , "./ tmp/key2 .log") ) ,
68
68
supportedPrivateKeyAlgos : undefined ,
69
69
tlsConfig : undefined ,
70
70
verifyFromPemFile : undefined ,
@@ -97,6 +97,8 @@ async function main () {
97
97
config ,
98
98
) ;
99
99
100
+ conn . setKeylog ( path . resolve ( path . join ( __dirname , "./tmp/key2.log" ) ) ) ;
101
+
100
102
let timeout : NodeJS . Timeout | null = null ;
101
103
let deadline : number = Infinity ;
102
104
let req_sent = false ;
@@ -162,6 +164,7 @@ async function main () {
162
164
port : remoteInfo . port ,
163
165
} ,
164
166
} ;
167
+ console . log ( recvInfo ) ;
165
168
conn . recv ( data , recvInfo ) ;
166
169
receivedEvent . resolveP ( ) ;
167
170
receivedEvent = promise ( ) ;
0 commit comments