File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import Prelude
55import Data.Array as Array
66import Data.FoldableWithIndex (forWithIndex_ )
77import Effect (Effect )
8+ import Effect.Aff (Milliseconds (..), delay , launchAff_ )
9+ import Effect.Class (liftEffect )
810import Effect.Class.Console (log )
911import Effect.Exception as Exception
1012import Effect.Ref as Ref
@@ -62,7 +64,6 @@ main = do
6264 void $ Stream .end duplex \_ -> do
6365 log $ " server - onStream - closing for id: " <> show streamId
6466 H2Stream .close stream NGHTTP2 .noError
65- Server .close server
6667
6768 Server .onTimeout server do
6869 log " onTimeout"
@@ -103,4 +104,6 @@ main = do
103104 str <- Buffer .toString UTF8 buffer :: Effect String
104105 log $ " client - onResponse body: " <> show str
105106 H2Stream .close stream NGHTTP2 .noError
107+ Session .destroy session
108+ Server .close server
106109
You can’t perform that action at this time.
0 commit comments