Skip to content

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