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

PLC4X-197 do not stop the global timer, remove and cancel the Timeouts instead #155

Merged
merged 1 commit into from
May 13, 2020

Conversation

ottobackwards
Copy link
Contributor

@ottobackwards ottobackwards commented May 12, 2020

rat exception for cmake-* directories' as well.

SingleItemToSingleRequestProtocol uses the global DefaultNettyPlcConnection timer object, which is a static singleton shared between all instances.

It was calling stop() on the timer, which cancels all the outstanding tasks in the timer when the channel when inactive. This has the effect of killing all the other connections.

This pr changes SingleItemToSingleRequestProtocol to instead, cancel all it's outstanding Timeouts and not touch the timer.


This change is Reviewable

@ottobackwards
Copy link
Contributor Author

I am open to suggestions on how to write a test for this

@chrisdutz
Copy link
Contributor

LGTM

@ottobackwards ottobackwards merged commit b9d4979 into apache:develop May 13, 2020
@ottobackwards ottobackwards deleted the clear-timeouts branch May 13, 2020 15:57
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

2 participants