Skip to content

Conversation

chudnyi
Copy link

@chudnyi chudnyi commented Apr 25, 2024

I ran into a problem when deno-vm is used in a Docker container in which the Deno process does not start, callback in this._httpServer.listen crashes, http server not started. In this case, there is no way for the client code of the application to find out about this and somehow handle the situation.

Messages that are sent via postMessage are stored in _pendingMessages and will never be processed.

My solution is not the best, but I implemented it so as not to change the library interface.

@KallynGowdy
Copy link
Member

@chudnyi Thanks for your contribution! It looks pretty good, but there's no test in your pull request covering this scenario. Could you add a test case to ensure that the proper errors are thrown and are able to be handled?

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.

2 participants