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

handle IOExceptions while writing resubscriptions (and pending data) … #149

Closed
wants to merge 2 commits into from

Conversation

edam
Copy link

@edam edam commented Feb 15, 2018

IOExceptions thrown as a result of writing to the OutputStream during a reconnect, whilst trying to write subscription (and pending) commands should not be silently ignored. This could lead to the scenario where the library believes it has successfully recovered a connection, but where some subscriptions have not been re-established.

This scenario may also be especially likely, given that the reconnection code may run where there are networking issues/partitions . At this time, conceivably, a backlog of pending RPC-like requests (i.e., publishes that require a response via a one-shot inbox) may have accumulated, leading to an excess of subscriptions to re-establish.

…to the

buffered output stream during reconnect
@coveralls
Copy link

coveralls commented Feb 15, 2018

Coverage Status

Coverage decreased (-0.1%) to 93.624% when pulling 432c7fd on edam:resub-bw-fix into 28ae1cc on nats-io:master.

@sasbury
Copy link
Contributor

sasbury commented Mar 19, 2019

Too many library changes to bring this PR in, if you see something similar in 2.x please resubmit.

@sasbury sasbury closed this Mar 19, 2019
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.

None yet

3 participants