-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling HttpServer's stop method in binding-http returns nothing #1237
Comments
I quickly checked and I would like to make 2 additions
It seems something is blocking the server to stop Activating the debug log we run into the the following
afterwards hanging. Wait.. there seems to be a timeout... after a while we get
@hidetak can you confirm that the server stops after ~2 minutes also? |
Thank you for your confirmation.
I apologize for the inconvenience of the IP address in the ThingDescription not being set to localhost, and I have placed the client with the IP address changed to localhost below.
As you said, the same phenomenon was placed not from the client but from the browser.
When accessed through a browser, the process took approximately 5 minutes. When deploying a flow in Node-RED, we restart the server. |
I think it is not really us preventing to close the connection but there may be somehow "alive" connections that keep the server up. There are very old threads like this or others like nodejs/node#2642 and people providing additions/code like here or a library-a / library-b / library-c for it or socket closing. @relu91 any opinion/suggestion since you might be more familiar with this part of the code.. |
The following problem occurred. I apologize for the inconvenience and would appreciate your confirmation.
I would appreciate it if you could tell me if I am calling it the wrong way, etc.
Problem
Nothing is returned when I call the stop method of HttpServer of Binding-http.
This problem may occur if the property is being observed from the client.
environment
Steps to reproduce
get the following code
https://github.com/hidetak/test-node-wot/tree/main/no-stop-httpserver
If 3 and 4 are not performed, the following is displayed and appears to be correctly terminated.
The text was updated successfully, but these errors were encountered: