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

Parse heart-beat header only if present #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Parse heart-beat header only if present #109

wants to merge 1 commit into from

Conversation

bclozel
Copy link

@bclozel bclozel commented May 5, 2015

According to the STOMP spec, the heart-beat header is OPTIONAL and a
missing header must be treated as heart-beat:0,0.

Prior to this changen the STOMP implementation would try to directly
.split() this header value without checking for its existence first.

This commit checks for the existence of the heart-beat header and uses
the default value "0,0" if it's not set.

See: https://stomp.github.io/stomp-specification-1.2.html#Heart-beating

According to the STOMP spec, the `heart-beat` header is OPTIONAL and a
missing header must be treated as `heart-beat:0,0`.

Prior to this changen the STOMP implementation would try to directly
`.split()` this header value without checking for its existence first.

This commit checks for the existence of the heart-beat header and uses
the default value `"0,0"` if it's not set.

See: https://stomp.github.io/stomp-specification-1.2.html#Heart-beating
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.

1 participant