Skip to content

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