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

PAYARA-546 Allow setting SO_KeepAlive on the server side. #3533

Closed
wants to merge 6 commits into from

Conversation

Pandrex247
Copy link
Member

@Pandrex247 Pandrex247 commented Dec 19, 2018

Set via a SystemProperty on all IIOP listeners.
Follow up PR (#3534) is a provisionary improvement that needs a fine-grained review as I'm not convinced that it'll work on multi-homed environments.

@@ -105,10 +106,9 @@
private static final String PERSISTENT_SSL = "PERSISTENT_SSL";

private static final int BACKLOG = 50;

private static final String SO_KEEPALIVE = "fish.payara.SOKeepAlive";
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the case of this property is so complicated, it will lead to issues.
May I suggest fish.payara.so-keepalive

@lprimak
Copy link
Contributor

lprimak commented Dec 21, 2018

jenkins test

@mulderbaba mulderbaba added this to the 5.191 milestone Dec 27, 2018
Copy link
Contributor

@MattGill98 MattGill98 left a comment

Choose a reason for hiding this comment

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

Just one comment on top of @lprimak's current comment.

// Enable or disable SO_KEEPALIVE for the socket as required
try {
if (Boolean.getBoolean(IIOPSSLSocketFactory.SO_KEEPALIVE) && !socket.getKeepAlive()) {
if (logger.isLoggable(Level.FINER)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a fan of this logger statement being so frequent. Feel free to ignore this if you disagree, but when this log level is enabled you'll likely get an absolute tonne of these messages. All except the first one (I think) will be unnecessary. It would possibly be better to add a method to check if it's changed and log if it does. This could by all means still be called from this method.

@Pandrex247 Pandrex247 closed this Jan 7, 2019
@Pandrex247 Pandrex247 deleted the PAYARA-546 branch November 4, 2020 10:24
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

4 participants