Skip to content
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

Server closing promise will be resolved if it is returned in shutdown promise resolving #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pavan555
Copy link

@pavan555 pavan555 commented Jan 11, 2024

Pull Request

Fixes #

Changes proposed:

This is a fix for Server closing promise to be resolved when there are no requests to be handled by the server
Just added return

Description (what is this PR about)

when there are requests to be handled by the server, this module works fine.

but when there are no requests to handle by the server, server closing is not resolving
and also server close listener is not working
server.on('close', () => console.log('HTTP server closed'))

I added return only.

@pavan555 pavan555 changed the title Server closing promise will be resolved if it is returned from function cleanupHttp Server closing promise will be resolved if it is returned in shutdown promise resolving Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant