Open stefan-guggisberg opened 4 years ago
@grantila I am still struggling with dangling http1 connections despite calling disconnectAll()
and stumbled over this issue while debugging. Fixing it doesn't solve my dangling connections problem but I thought it's worth reporting anyway.
There's a bug in the Http1
disconnectAll
implementation. https://github.com/grantila/fetch-h2/blob/master/lib/context-http1.ts#L141 is never executed because thewaiting
array is truncated on the preceding line.This PR fixes this by copying the
waiting
array.