It will throw an error when both using server.closeIdleConnections()
& server.close()
#43771
Labels
http
Issues or PRs related to the http subsystem.
Version
18.5.0
Platform
Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T8101 x86_64
Subsystem
http
What steps will reproduce the bug?
When I'm dealing with fastify/fastify#4098, I found a strange behavior in
server
:If both using
closeidleConnections
&close
api to deal withserver.close
, it will throw an error, but is ok to use one of this. And I have noticed that in this pr:#43522closeidleConnections
will run inserver.close
. If use main branch to run this code without triggercloseidleConnections
it will also throw the same error.How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
return {"data":"Hello World!"}
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: