Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fixup
  • Loading branch information
metcoder95 committed Nov 27, 2024
commit 84b6d06975b188a0bef8a020fc70d6931481c935
2 changes: 1 addition & 1 deletion lib/dispatcher/client-h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function connectH2 (client, socket) {
queueMicrotask(callback)
} else {
// Destroying the socket will trigger the session close
socket.destroy(err).on('close', callback)
socket.end('').destroy(err).on('close', callback)
}
},
get destroyed () {
Expand Down
4 changes: 1 addition & 3 deletions test/http2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1779,10 +1779,8 @@ test('Should handle http2 trailers', { only: true }, async t => {

after(async () => {
server.close()
await once(server, 'close')
return client.close()
})
// after(() => client.close())
after(() => client.close())

client.dispatch({
path: '/',
Expand Down