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

emit error when publishFn err Channel closed #81

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

zijin-m
Copy link

@zijin-m zijin-m commented Mar 6, 2020

when pool.acquire() success but connection is at error state (at same time network is broken), Publication try publishFn will throw err IllegalOperationError {message: "Channel closed", stack: "IllegalOperationError: Channel closed\n at Confi…", stackAtStateChange: "Stack capture: Socket error\n at Connection.onSo…"} and be catched , but not emit error event for user to known this, it may lead to message loss !

Copy link
Collaborator

@cressie176 cressie176 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zijin-m, really appreciate this PR.

@cressie176 cressie176 merged commit e9ee435 into onebeyond:master Mar 6, 2020
@cressie176
Copy link
Collaborator

published as rascal@8.0.1

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