export qlog files if the QLOGDIR env is set in interop client and server

This commit is contained in:
Marten Seemann
2020-02-12 11:55:23 +07:00
parent 89728126cc
commit 5aaab80698
3 changed files with 46 additions and 3 deletions

View File

@@ -37,9 +37,15 @@ func main() {
testcase := os.Getenv("TESTCASE")
getLogWriter, err := utils.GetQLOGWriter()
if err != nil {
fmt.Println(err.Error())
os.Exit(1)
}
// a quic.Config that doesn't do a Retry
quicConf := &quic.Config{
AcceptToken: func(_ net.Addr, _ *quic.Token) bool { return true },
AcceptToken: func(_ net.Addr, _ *quic.Token) bool { return true },
GetLogWriter: getLogWriter,
}
tlsConf = testdata.GetTLSConfig()
tlsConf.KeyLogWriter = keyLog