Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

added queue properties parsing in SEND and SUBSCRIBE #26

Closed
wants to merge 15 commits into from

Conversation

priviterag
Copy link
Contributor

added x-message-ttl, x-expires, x-max-length, x-max-length-bytes, x-dead-letter-exchange, x-dead-letter-routing-key and x-max-priority parsing in SEND and SUBSCRIBE

{arguments, Arguments}.

%% build the actual value thru pattern matching
build_argument(?HEADER_X_DEAD_LETTER_EXCHANGE, Val) -> {list_to_binary(?HEADER_X_DEAD_LETTER_EXCHANGE), longstr, list_to_binary(string:strip(Val))};
Copy link
Member

Choose a reason for hiding this comment

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

Please move head bodies to the next line:

build_argument(?HEADER_X_DEAD_LETTER_EXCHANGE, Val) ->
  {list_to_binary(?HEADER_X_DEAD_LETTER_EXCHANGE), longstr, list_to_binary(string:strip(Val))};

@michaelklishin
Copy link
Member

This is submitted for stable but clearly was branched off master and uses time_compat which is present only in master.

@michaelklishin michaelklishin self-assigned this Aug 19, 2015
@michaelklishin michaelklishin added this to the n/a milestone Aug 19, 2015
@michaelklishin
Copy link
Member

There are no tests for this functionality. It should be fairly easy to test using a STOMP plugin and then queue.declare with the expected attributes.

@michaelklishin
Copy link
Member

I'm closing as this absolutely cannot be merged into stable.

@priviterag
Copy link
Contributor Author

@michaelklishin should I branch from master or stable?

@michaelklishin
Copy link
Member

Are there any breaking changes? If not, this can go into 3.5.x.

@priviterag
Copy link
Contributor Author

@michaelklishin for tests, how can I check the properties of a queue from STOMP?

@michaelklishin
Copy link
Member

@priviterag simply declare the queue with the properties you expect. If they don't match what's already there, you will get a channel exception.

@michaelklishin
Copy link
Member

@priviterag tests should use both STOMP and the Erlang AMQP 0-9-1 client.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants