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

ARTEMIS-239 disable ttl for STOMP connections #208

Closed
wants to merge 1 commit into from

Conversation

jscheid
Copy link
Contributor

@jscheid jscheid commented Oct 21, 2015

Leave dead connection detection up to the heart-beating logic.

Leave dead connection detection up to the heart-beating logic.
@clebertsuconic
Copy link
Contributor

there is some tests changes I have to do for this...

I will keep this open for now

@jscheid
Copy link
Contributor Author

jscheid commented Nov 16, 2015

Hi @clebertsuconic, is there anything else I can do to move this forward?

@themerius
Copy link

Would be nice if this fix goes into the next release of Artemis! Or into the branch, so I can test it.

@jbertram
Copy link
Contributor

@themerius, I'm not sure if @clebertsuconic is done with the test changes, but in any case you can add @jscheid as a git remote and cherry-pick his commit into your own branch for testing purposes.

@jscheid
Copy link
Contributor Author

jscheid commented Nov 18, 2015

We've discussed this more on IRC and it turns out this is a bad idea.

According to the STOMP protocol, the client can ask for no heartbeats (and STOMP 1.0 doesn't support heartbeats at all) and so the server runs in danger of leaking connections when dealing with badly behaved clients when there is no hard upper limit on connection TTL.

We've agreed the correct fix is instead to improve the documentation to point out that TTL needs to be configured correctly on the server to suit the use case, and that clients can't expect long heart beat intervals (or no heart beating at all) to work. Also, it would be good if Artemis could add a mechanism to configure per-acceptor TTL but that is a separate issue.

@jscheid jscheid closed this Nov 18, 2015
@jscheid jscheid deleted the ARTEMIS-239-disable-stomp-ttl branch November 18, 2015 20:56
d0k1 pushed a commit to d0k1/activemq-artemis that referenced this pull request Dec 21, 2015
mtaylor added a commit to mtaylor/activemq-artemis that referenced this pull request Jul 26, 2017
zschwarz pushed a commit to zschwarz/activemq-artemis that referenced this pull request Mar 20, 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
4 participants