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

[WFLY-14980] add default 60s r/o timeout to listeners #15069

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

ropalka
Copy link
Contributor

@ropalka ropalka commented Jan 8, 2022

@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Jan 8, 2022
@ropalka
Copy link
Contributor Author

ropalka commented Jan 10, 2022

@darranl please review

@bstansberry
Copy link
Contributor

@ropalka The needs a management API version bump and a transformer, so legacy host controller runs with a 60 s timeout if no value is explicitly configured.

@ropalka
Copy link
Contributor Author

ropalka commented Jan 22, 2022

Hello @bstansberry , the bump is already in, see: a1f9ad7
What about transformers, we decided to drop them, didn't we ebef9a9 ?

@bstansberry
Copy link
Contributor

@ropalka No, we didn't drop transformers, we just reduced the number of old releases we transform to to WF 23 or later. So this needs transformers.

@ropalka
Copy link
Contributor Author

ropalka commented Feb 3, 2022

Fixed @bstansberry and thanks for the clarification.

@ropalka
Copy link
Contributor Author

ropalka commented Sep 6, 2022

This should get it into WildFly @bstansberry before we will release it. ( @fl4via CC )

@ropalka
Copy link
Contributor Author

ropalka commented Jan 20, 2023

Just an FYI this is a long pending PR @bstansberry .

@bstansberry bstansberry merged commit bf1f4bf into wildfly:main Feb 3, 2023
@bstansberry
Copy link
Contributor

Thanks @ropalka

Comment on lines +64 to +67
.setDiscard(DiscardAttributeChecker.DEFAULT_VALUE, WRITE_TIMEOUT)
.setDiscard(DiscardAttributeChecker.DEFAULT_VALUE, READ_TIMEOUT)
.addRejectCheck(new SimpleRejectAttributeChecker(ModelNode.TRUE), WRITE_TIMEOUT.getName())
.addRejectCheck(new SimpleRejectAttributeChecker(ModelNode.TRUE), READ_TIMEOUT.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

This transformation does not look correct to me. A new default value should not result in any rejections, but rather use an AttributeConverter.
I've fixed this (and included missing tests) in this PR: #16455

Comment on lines +77 to +78
<xs:attribute name="read-timeout" type="xs:long" default="60000"/>
<xs:attribute name="write-timeout" type="xs:long" default="60000"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Version 13 was introduced in WF27. Modifications to XSDs are generally done in a new version.
I've patched this here: #16455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants