@@ -219,8 +219,9 @@ response settings ctx@Context{outputQ} mgr ii reqvt tconf strm req rsp = case rs
219219 !out = Output strm rspn ii tell h2data rspnOrWait
220220 enqueueOutput outputQ out
221221 let push b = do
222+ T.pause th
222223 atomically $ writeTBQueue tbq (SBuilder b)
223− T.tickle th
224+ T.resume th
224225 flush = atomically $ writeTBQueue tbq SFlush
225226 _ <- strmbdy push flush
226227 atomically $ writeTBQueue tbq SFinish
@@ -242,7 +243,8 @@ worker ctx@Context{inputQ,controlQ} set app responder tm = do
242243 setStreamInfo sinfo inp
243244 T.resume th
244245 T.tickle th
245− app req $ responder ii reqvt tcont strm req
246+ let ii' = ii { threadHandle = th }
247+ app req $ responder ii' reqvt tcont strm req
246248 cont1 <- case ex of
247249 Right ResponseReceived -> return True
248250 Left e@(SomeException _)