Skip to content

Commit

Permalink
print info after HTML for 0RTT
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Apr 19, 2024
1 parent e329b6d commit 5c32abb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tls/util/tls-client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,17 @@ runClient2 Options{..} cparams aux@Aux{..} paths = do
auxDebug "<<<< next connection >>>>"
auxDebug "------------------------"
runTLS cparams aux $ \ctx -> do
i <- getInfo ctx
when optDebugLog $ printHandshakeInfo i
void $ client aux paths ctx
return i
if opt0RTT
then do
void $ client aux paths ctx
i <- getInfo ctx
when optDebugLog $ printHandshakeInfo i
return i
else do
i <- getInfo ctx
when optDebugLog $ printHandshakeInfo i
void $ client aux paths ctx
return i

runTLS
:: ClientParams
Expand Down

0 comments on commit 5c32abb

Please sign in to comment.