eclipse-thingweb / eclipse-thingweb/node-wot
Calling HttpServer's stop method in binding-http returns nothing
- Langage dominant
- TypeScript
- Étoiles
- 192
- Forks
- 100
- Merge moyen
- 4 j 4 h
- PR mergées (30 j)
- 8
Description
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
* Mac(Apple siicon)
* OS: Sonoma 14.1
* nodejs: v18 or v20
* node-wot: 0.8.12
# Steps to reproduce
get the following code
https://github.com/hidetak/test-node-wot/tree/main/no-stop-httpserver
1. $ npm install
1. $ npm run start:server
1. open new terminal
1. $ npm run start:client
1. After 10 seconds have elapsed since the server was started, the termination process begins (The following text will appear in the terminal where the server is run)
```
[debug] endServient called.
[debug] server destroyed.
```
If 3 and 4 are not performed, the following is displayed and appears to be correctly terminated.
```
[debug] endServient called.
[debug] server destroyed.
[debug] server stopped.
[debug] servient shutdown.
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par exécuter la reproduction no-stop-httpserver du dépôt lié avec npm install, npm run start:server et npm run start:client. Suivez le chemin d’arrêt de HttpServer après que le client a observé la propriété ; c’est terminé lorsque le journal d’arrêt atteint « server stopped » et « servient shutdown » dans ce scénario.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- nodejs, typescript
- Domaine
- api, backend, networking
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100