nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
107k stars 29.28k forks source link

node --watch --watch-path #55189

Open 0xMIEL opened 6 days ago

0xMIEL commented 6 days ago

Version

v20.17.0

Platform

Linux 5d46ffbf9811 6.10.4-linuxkit #1 SMP Mon Aug 12 08:47:01 UTC 2024 aarch64 Linux

Subsystem

docker

What steps will reproduce the bug?

I’m using node --watch --watch-path in Docker, and it works great until after a few runs, it gets stuck and displays the message ‘Waiting for graceful termination.’

How often does it reproduce? Is there a required condition?

I’m using node --watch --watch-flag in Docker, and it works great. However, with every start, after Node refreshes the code a few times, it gets stuck and the message ‘Waiting for graceful termination.’ appears.

What is the expected behavior? Why is that the expected behavior?

With each run, when node refreshes the code several times

What do you see instead?

Screenshot 2024-09-30 at 20 56 17

Additional information

No response

RedYetiDev commented 6 days ago

Are you able to reproduce outside of Docker? I can't seem to reproduce locally.

0xMIEL commented 6 days ago

Yes, I was able to reproduce this error when I edited the http server.

Screenshot 2024-09-30 at 22 24 49