nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.37k stars 323 forks source link

nodejs unit-http Response missing `close` event and `writableEnded` property #1250

Open dbit-xia opened 4 months ago

dbit-xia commented 4 months ago

Hi, I use nodejs and found that the response of unit-http is missing close event and writableEnded property Version number: unit 1.32.0

The close event should be triggered after response.end() ,

The following is the official nodejs documentation I found: image image

In addition, I used nestjs@9+fastify+opentelemetry and found that it needs to listen to the close event and writableEnded property to complete the end of the span.