Diana Corbacho
0d02297cea
Backported part of: CLI command to list stomp connections
2017-01-27 12:38:27 +00:00
Diana Corbacho
73d22fd2e6
Tests stats are not leaked if connection failed
2017-01-27 12:31:09 +00:00
Diana Corbacho
98cd0c876b
Avoid emitting stats if connection is not defined
2017-01-27 12:12:54 +00:00
Diana Corbacho
fed191458f
Return connection pid
2017-01-27 08:08:22 +00:00
Diana Corbacho
970bc0949d
Notify reductions, garbage_collection, recv_oct and send_oct in the core metrics
2017-01-27 08:08:02 +00:00
Arnaud Cogoluègnes
a1334bd626
Add topic authorisation for consumption
...
Part of rabbitmq/rabbitmq-server#1085
2017-01-23 15:19:07 +01:00
Diana Corbacho
c754c00971
Pass user who performed the action to test fixtures
2017-01-17 07:39:34 +00:00
Michael Klishin
db0d45e706
Merge branch 'stable'
2016-12-17 02:56:54 +03:00
Michael Klishin
0b9450d408
Add 19.1 and 19.2 to Travis build matrix
2016-12-17 02:39:10 +03:00
Jean-Sébastien Pédron
2600aef69d
Travis CI: Import changes from rabbitmq-auth-backend-amqp
2016-12-12 14:31:20 +01:00
Jean-Sébastien Pédron
a04a8725e4
Merge branch 'stable'
2016-12-09 19:25:43 +01:00
Jean-Sébastien Pédron
4ed8425c89
Update rabbitmq-components.mk
2016-12-08 19:14:52 +01:00
Jean-Sébastien Pédron
1b9a11fbde
Do not use -include_lib() with own headers
...
This fixes the build outside of an Umbrella-like setup, ie. when
dependencies of this plugin are put into the `deps` subdirectory.
2016-12-08 18:10:02 +01:00
Jean-Sébastien Pédron
7e9fb20bde
Travis CI: Use Ubuntu Trusty image to have access to Elixir
...
Also, required `sudo` so a VM is used instead of a container. This makes
the test much longer, but allows us to install non-whitelisted packages
such as xsltproc.
2016-12-08 17:52:55 +01:00
Diana Corbacho
1979a7ce7e
Use `config` instead of `default` for auth type
2016-12-08 15:10:10 +00:00
Diana Corbacho
f41b688557
Remove login keys
2016-12-08 14:35:39 +00:00
Diana Corbacho
6e5313d1fe
Update info keys
2016-12-08 13:08:54 +00:00
Diana Corbacho
9051a327c8
CLI command to list stomp connections
2016-12-08 10:50:56 +00:00
Jean-Sébastien Pédron
476d504a8f
Merge branch 'stable'
2016-12-07 16:05:39 +01:00
Michael Klishin
2dafc488ef
Merge pull request #96 from rabbitmq/rabbitmq-web-stomp-60
...
Small changes for Web STOMP
2016-12-06 21:04:34 +03:00
Loïc Hoguin
6abb946f79
Fix force_default_creds to accept binary/list creds
2016-12-06 17:32:39 +01:00
Loïc Hoguin
aabf4a5743
Export rabbit_stomp:parse_default_user/2
...
Useful for rabbitmq_web_stomp.
2016-12-06 17:32:01 +01:00
Jean-Sébastien Pédron
01b1abd8c7
Move from .app.src to Makefile variables
...
This is the recommended way with Erlang.mk.
By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.
[#130992027 ]
2016-12-06 16:40:56 +01:00
Jean-Sébastien Pédron
3d1c86b5fc
rabbit_stomp_processor: Use `rabbit` application description
...
... instead of application id. They have the same value currently, but
once we move from .app.src to Makefile variables, Erlang.mk will use the
id for other purposes.
[#130992027 ]
2016-12-06 11:46:08 +01:00
Michael Klishin
d2218dbdbd
Merge branch 'stable'
2016-12-01 14:18:58 +03:00
Michael Klishin
4f1674c0c0
Merge branch 'stable'
2016-11-30 18:57:39 +03:00
Michael Klishin
722c388f7e
Merge branch 'stable'
2016-11-29 21:20:50 +03:00
Michael Klishin
d263312065
Update rabbitmq-components.mk
2016-11-29 20:59:40 +03:00
Jean-Sébastien Pédron
f74dc18a20
Merge branch 'stable'
2016-11-25 11:49:51 +01:00
Jean-Sébastien Pédron
2105114231
Update rabbitmq-components.mk
2016-11-25 10:51:03 +01:00
Jean-Sébastien Pédron
0c6318c9a8
Merge branch 'stable'
2016-11-25 10:38:27 +01:00
Jean-Sébastien Pédron
4fc6b40bd7
Update rabbitmq-components.mk
2016-11-25 10:08:23 +01:00
Gerhard Lazu
ddee4d8ef8
Use test name for the RabbitMQ node name
...
Each test case should have its own broker, rather than re-use the same
broker for the entire test suite.
Signed-off-by: Jean-Sébastien Pedron <jean-sebastien@rabbitmq.com>
2016-11-24 11:29:20 +00:00
Jean-Sébastien Pédron
01a8c09566
Merge branch 'stable' into rabbitmq-management-236
2016-11-24 12:11:44 +01:00
Jean-Sébastien Pédron
51b867a3a5
Merge branch 'stable'
2016-11-24 09:56:19 +01:00
Jean-Sébastien Pédron
8611b20678
Add rabbitmq_ct_client_helpers to TEST_DEPS
2016-11-24 09:51:45 +01:00
Jean-Sébastien Pédron
48343d7a88
Update rabbitmq-components.mk
2016-11-23 18:06:07 +01:00
Gerhard Lazu
25aaa869a1
Merge branch 'stable'
2016-11-23 11:15:07 +00:00
Jean-Sébastien Pedron
afc7a931ba
Increase message receive timeout for redelivered.py
...
Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
2016-11-23 11:13:05 +00:00
Gerhard Lazu
84b846d247
Merge branch 'stable'
2016-11-22 17:02:50 +00:00
Gerhard Lazu
dddd921d4d
Update erlang.mk
2016-11-22 16:20:30 +00:00
Gerhard Lazu
26e245bfcd
Update rabbitmq-components.mk
2016-11-22 16:16:43 +00:00
Jean-Sébastien Pédron
6e05b47d03
Update erlang.mk
2016-11-14 12:27:51 +01:00
Daniil Fedotov
450946b650
Fix test timing
2016-11-11 12:47:02 +00:00
Jean-Sébastien Pédron
f54c108b10
Update rabbitmq-components.mk
2016-11-10 16:56:53 +01:00
Jean-Sébastien Pédron
ddc262662a
Merge branch 'stable' into rabbitmq-management-236
2016-09-27 12:45:32 +02:00
Jean-Sébastien Pédron
859ea45d7b
Merge branch 'stable'
2016-09-23 16:22:31 +02:00
Jean-Sébastien Pédron
efe540ba4b
Update rabbitmq-components.mk
2016-09-23 11:23:10 +02:00
Jean-Sébastien Pédron
13af80eae4
Update erlang.mk
2016-09-22 17:57:08 +02:00
Jean-Sébastien Pédron
4f28bde54f
rabbitmq_stomp.app: Depend on rabbit_common
2016-09-19 13:01:58 +02:00
Jean-Sébastien Pédron
71197dded1
Update erlang.mk
2016-09-19 12:26:23 +02:00
Jean-Sébastien Pédron
526db97a76
Makefile: Explicitely list all DEPS
...
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.
[#130086871 ]
2016-09-19 12:14:33 +02:00
Jean-Sébastien Pédron
a352da296e
Merge branch 'stable'
2016-09-15 16:43:13 +02:00
Jean-Sébastien Pédron
ef851892b9
Update rabbitmq-components.mk
2016-09-15 15:46:06 +02:00
Daniil Fedotov
7df07c02d8
Merge branch 'stable'
2016-09-06 17:57:55 +01:00
Daniil Fedotov
e87a008ce2
Added ranch as a dependency to build ranch_protocol behaviour
2016-09-06 17:57:20 +01:00
Jean-Sébastien Pédron
56976ae96e
Travis CI: Do not test on Erlang 18.3
...
The Python client TLS connection is rejected because of "insufficient
security". This is a regression in Erlang 18.3.
2016-09-05 18:33:18 +02:00
Jean-Sébastien Pédron
dc7eb71382
Merge branch 'stable'
2016-09-05 16:36:58 +02:00
Jean-Sébastien Pédron
12faaf4683
*_SUITE: Stop the broker at the end of the testsuite
2016-09-05 16:19:49 +02:00
Jean-Sébastien Pédron
9ce17b4a56
rabbitmq_stomp.app: default_user credentials should be Erlang binaries
...
That is what the Erlang client and RabbitMQ expect.
2016-09-05 15:58:09 +02:00
Jean-Sébastien Pédron
37463eb9bd
Merge branch 'stable'
2016-09-02 16:09:28 +02:00
Jean-Sébastien Pédron
0d217c2c7d
Travis CI: Test against Erlang 19.0
2016-09-02 15:14:33 +02:00
Jean-Sébastien Pédron
2dc5f0259a
Update rabbitmq-components.mk
2016-09-02 13:22:27 +02:00
Jean-Sébastien Pédron
160814c000
Makefile: No need to filter out rabbitmq_test from TEST_DEPS anymore
...
[#127356157 ]
2016-09-02 12:34:20 +02:00
Jean-Sébastien Pédron
5e2ab56540
Update rabbitmq-components.mk
2016-09-02 12:03:33 +02:00
kjnilsson
46e6e61fc5
write connection_stats metrics
2016-09-01 13:36:07 +01:00
Daniil Fedotov
5b159deb0c
Missing parenthesis
2016-07-28 12:05:32 +01:00
Michael Klishin
b8367e54ff
Merge branch 'stable'
2016-07-25 16:09:27 -07:00
Daniil Fedotov
593bbac8a6
Install pika and stomppy when running tests
2016-07-22 11:48:44 +01:00
Daniil Fedotov
ab642c9278
Moving files around
2016-07-22 11:21:16 +01:00
Daniil Fedotov
df929611a8
empty commit
2016-07-22 11:21:16 +01:00
Daniil Fedotov
03b4a0e75d
Run python tests from CT
2016-07-22 11:21:16 +01:00
Daniil Fedotov
485d091119
Move eunit tests to common test
2016-07-22 11:21:16 +01:00
Jean-Sébastien Pédron
7d94037d30
Travis CI: Test on Erlang 19.0
2016-07-22 10:59:53 +02:00
Jean-Sébastien Pédron
8cd764c9ce
Merge branch 'stable'
2016-07-22 10:58:59 +02:00
Jean-Sébastien Pédron
6f14e716af
Travis CI: Import branch handling from rabbitmq-shovel
2016-07-22 10:57:31 +02:00
Michael Klishin
bbcbd798d5
Update rabbitmq-components.mk
2016-07-14 15:44:14 +03:00
Michael Klishin
b461e6e87a
Update rabbitmq-components.mk
2016-07-14 15:37:36 +03:00
Michael Klishin
d5383e3b47
Update rabbitmq-components.mk
2016-07-14 13:47:16 +03:00
Michael Klishin
cc4b1888c4
Update rabbitmq-components.mk
2016-07-14 13:20:04 +03:00
Jean-Sébastien Pédron
047f059f0f
Merge branch 'stable'
2016-06-29 17:29:24 +02:00
Jean-Sébastien Pédron
fda7b38f60
Use the new -spec format
...
The old format is removed in Erlang 19.0, leading to build errors.
Also, get rid of the `use_specs` macro and thus always define -spec() &
friends.
While here, unnify the style of -type and -spec.
References rabbitmq/rabbitmq-server#860.
[#118562897 ]
[#122335241 ]
2016-06-29 17:27:30 +02:00
Jean-Sébastien Pédron
2a6e2a7421
Git: Ignore `xrefr`
2016-06-29 17:27:14 +02:00
Daniil Fedotov
97c5c04f28
Merge branch 'stable'
2016-06-17 14:20:22 +01:00
Daniil Fedotov
bd35670624
Set bounded timeout for OTP workers
2016-06-16 13:12:03 +01:00
Michael Klishin
3e4dec00db
Merge branch 'stable'
2016-05-29 23:36:24 +03:00
Michael Klishin
2417baec87
Update rabbitmq-components.mk
2016-05-29 23:21:56 +03:00
Michael Klishin
8704eb3e8d
Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md
2016-05-28 09:56:26 -07:00
Michael Klishin
adec0e1769
Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md
2016-05-28 14:22:51 +03:00
kjnilsson
ed490fc4ab
Merge branch 'stable'
2016-05-18 13:22:06 +01:00
Karl Nilsson
4e9e3bb110
Update rabbitmq-components.mk
2016-05-18 12:48:01 +01:00
Michael Klishin
eafc8539d9
Merge branch 'master' into rabbitmq-server-546
2016-05-17 15:31:59 +03:00
Michael Klishin
24e1f0032a
Update rabbitmq-components.mk
2016-05-17 11:17:54 +03:00
Michael Klishin
15d788635a
Update rabbitmq-components.mk
2016-05-17 10:16:10 +03:00
Daniil Fedotov
f0a3c3c346
Use erlang 18.3 only in travis
2016-05-12 10:58:25 +01:00
Daniil Fedotov
0dcbe61bdc
Do not use time_compat
2016-05-12 10:23:42 +01:00
Daniil Fedotov
0197090c7e
Stub for broker_version_requirements
2016-04-22 14:42:18 +01:00
Michael Klishin
90bbe28495
Merge branch 'stable'
2016-03-31 13:26:48 +03:00
Michael Klishin
36b500196b
Merge branch 'stable'
2016-03-31 12:06:04 +03:00
Michael Klishin
b467ea792b
Update low level frame parser tests
2016-03-30 20:50:57 +03:00
Michael Klishin
effdf3cdf9
Introduces a configuration setting, rabbitmq_stomp.hide_server_info
...
to prevent CONNECT from sending the server header.
References #57 , a few low level parser tests still need updating.
2016-03-30 20:42:25 +03:00
Michael Klishin
bbe819a2fc
Wording
2016-03-30 20:08:56 +03:00
Michael Klishin
931982091d
Merge branch 'stable'
2016-03-30 01:49:46 +03:00
Michael Klishin
7f3b6ad218
Merge branch 'stable' into rabbitmq-web-stomp-43
2016-03-30 01:36:29 +03:00
Hiroyasu OHYAMA
1fddb51378
added a processing to close connection at the end
2016-03-28 03:38:34 +00:00
Hiroyasu OHYAMA
fba554d5bc
added examples which describe how to use 'temp-queue' destination (for #78 )
2016-03-27 16:21:35 +00:00
Hiroyasu OHYAMA
c1e139c452
added examples which use '/exchange' destination (for #78 )
2016-03-27 15:55:24 +00:00
Hiroyasu OHYAMA
1d6373a0fc
added an example of publisher which specifies '/amq/queue' destination (for #78 )
2016-03-27 15:34:44 +00:00
Michael Klishin
a6c726f195
Connect using an IPv4 address
...
Makes the test suite more reliable in environments with
weird/broken hosts files.
2016-03-23 21:31:16 +03:00
Michael Klishin
a8c94322c2
Merge branch 'master' into rabbitmq-server-550
2016-03-23 20:01:16 +03:00
Michael Klishin
add3958893
Merge branch 'stable'
2016-03-23 17:21:02 +03:00
Michael Klishin
0e8d7d642e
Update rabbitmq-components.mk
2016-03-23 17:13:42 +03:00
Michael Klishin
d04ea3136b
Trailing ws
2016-03-23 12:24:43 +00:00
Daniil Fedotov
3beec310ab
schema testing fixes
2016-03-23 12:24:43 +00:00
Daniil Fedotov
4988f8a87a
listeners schema fixes
2016-03-23 12:24:43 +00:00
Daniil Fedotov
f77c6b50f0
Revert "Revert "cuttlefish schema""
...
This reverts commit 4e87acffff
.
2016-03-23 12:24:43 +00:00
Michael Klishin
055ac573a6
Merge branch 'stable'
2016-03-18 14:13:36 +00:00
Daniil Fedotov
d7368006cd
no more foo
2016-03-18 12:35:17 +00:00
Daniil Fedotov
81b4fcfb18
tests sanity
2016-03-18 10:03:23 +00:00
Daniil Fedotov
9f5f238ca4
Stomp errors tests
2016-03-17 19:15:39 +00:00
Daniil Fedotov
7e98ee7fe6
Handle channel errors in stomp
2016-03-17 15:49:33 +00:00
Hiroyasu OHYAMA
0f865d893f
Using '/temp-queue' destination instead of '/queue' for temporary-queues
2016-03-14 05:54:15 +00:00
Loïc Hoguin
212f530641
Add a force_default_creds option
...
This option forces the use of the default_login and
default_passcode when authenticating the user. It is
necessary for RabbitMQ-Web-STOMP's use_http_auth option.
2016-03-09 16:33:52 +01:00
Daniil Fedotov
21ae703e99
Heartbeat like in MQTT plugin
2016-03-09 12:22:07 +00:00
Daniil Fedotov
9c468bddf1
Store heartbeat monitor
2016-03-09 12:22:00 +00:00
Michael Klishin
f4e18c9feb
Emit stats unconditionally
...
of connection (flow control) state.
This makes it much easier to reason about flow control
state when looking at the management UI or monitoring tools
that poll HTTP API.
Now that rabbitmq/rabbitmq-management#41 is merged, there are
few arguments against always emitting stats.
Fixes #70 .
2016-03-08 15:34:35 +03:00
Daniil Fedotov
0485aa80b1
Handling of resource alarm message
2016-03-07 17:22:42 +00:00
Michael Klishin
9354eca032
Use 0 for frame_max
...
Atom values break HTTP API clients in statically
typed languages, e.g. Go and Java.
2016-03-04 13:55:08 +03:00
Michael Klishin
1781970f9f
Cosmetics
2016-03-04 13:44:30 +03:00
Michael Klishin
2136c82d28
Cosmetics
2016-03-04 13:40:52 +03:00
Michael Klishin
ad7ec51ef7
Use STOMP client for product name
2016-03-04 13:39:19 +03:00
Michael Klishin
13e6c3f920
Sync with upstream
2016-03-04 04:55:40 +03:00
Michael Klishin
36445e49a4
Oops
2016-03-04 04:17:46 +03:00
Michael Klishin
0a97bb448c
Merge branch 'stable' into rabbitmq-stomp-55
2016-03-04 04:17:07 +03:00
Loïc Hoguin
cf47023862
Handle socket errors when sending stats
2016-03-03 14:32:45 +01:00
Loïc Hoguin
1e3094bf05
Simplify emit_stats/1
2016-03-03 13:28:28 +01:00
Loïc Hoguin
599f0e8f55
Emit stats for management UI
2016-03-03 13:28:28 +01:00
Loïc Hoguin
b3d6c0a01e
STOMP connections use exactly one channel
2016-03-03 13:26:28 +01:00
Daniil Fedotov
7d88ca9e35
handle client_timeout in handle_cast
2016-03-01 12:37:18 +00:00
Jean-Sébastien Pédron
079779d733
rabbit_stomp_reader: Handle parsing errors gracefully
...
For a long time, process_received_bytes() didn't expect parsing
error, triggering a case_clause exception. That was ok before the merge
of #6 because go() caught the exception, logged an error and the process
terminated gracefully.
After #6 , the exception was not caught anymore, causing a crash of the
process. Furthermore, terminate() was called with the case_clause
exception as the exit reason. It called log_network_error() which didn't
expect it either, causing an additional function_clause exception.
This double fault was noticed thanks to the
test_direct_client_connections_are_not_leaked() test which tries to open
100 faulty connections very quickly.
The broker couldn't handle such a rate in our CI, because of the
supervisor trying to cope with all those crashes, and the test failed
with a timeout.
So first, the parsing error is now handled in process_received_bytes()
case block. It triggers a normal termination of the process.
Then, the error is logged right there and the process stops with the
reason 'normal', because a non-'normal' error would still cause the
supervisor to log a message and handle recovery, which would still be
too slow.
2016-02-24 11:14:40 +01:00
Jean-Sébastien Pédron
eb37165d66
Style fixes
2016-02-24 11:03:31 +01:00
Jean-Sébastien Pédron
e646725785
Remove trailing whitespaces
2016-02-24 10:54:35 +01:00
Loïc Hoguin
4a452bc027
Emit stats for management UI
2016-02-18 17:14:04 +01:00
Loïc Hoguin
732dff26ed
STOMP connections use exactly one channel
2016-02-18 17:14:04 +01:00
Michael Klishin
861057e092
Use 'durable' and 'persistent' interchangeably in more places
...
Fixes #58 .
2016-02-15 12:49:51 +03:00
Loïc Hoguin
93df9518b9
Make number of Ranch acceptors configurable
2016-01-12 11:30:53 +01:00
Michael Klishin
c9d19e1ab0
Update (c) info
2016-01-01 12:59:19 +03:00
Pierre Fenoll
442360be3d
.gitignore: make absolute paths relative
2015-12-30 07:10:26 +03:00
Jean-Sébastien Pédron
fc364d0437
Update erlang.mk
2015-12-18 20:34:27 +01:00
Jean-Sébastien Pédron
0175ffffee
Update rabbitmq-components.mk
2015-12-18 19:08:10 +01:00
Michael Klishin
cef4baadf0
Update rabbitmq-components.mk
2015-12-18 19:49:17 +03:00
Jean-Sébastien Pédron
7840ffebf1
Pika is an AMQP client, not a STOMP one, don't override the TCP port...
2015-12-16 14:52:52 +01:00
Jean-Sébastien Pédron
1f679b39b1
Use TCP ports 5673/5674 in the testsuite
...
The default STOMP port is 61613 but it's in the middle of the ephemeral
ports range on many operating systems. Therefore, there is a chance this
port is already in use which causes the testsuite to fail. Let's use a
port close to the AMQP default port.
2015-12-16 10:42:53 +01:00
Jean-Sébastien Pédron
0ea852b36f
rabbit_stomp_test: Fix how connections are accounted
...
We need to count IPv4 and IPv6 separately and explicitely. Counting IPv4
connections may fail on platforms where the IPv6 listener implicitely
handles IPv4. Counting IPv6 connections may fail if the host is not
configured for IPv6.
2015-12-16 09:40:04 +01:00
Jean-Sébastien Pédron
1c3bbc1820
erlang.mk: Disable eunit
...
Even though the eunit test succeeds here, it's executed twice because we
also run it from `STANDALONE_TEST_COMMANDS`.
2015-12-16 09:23:38 +01:00
Michael Klishin
8e81cef4cf
Merge branch 'master' into rabbitmq-stomp-6
2015-12-09 16:33:43 +03:00
Jean-Sébastien Pédron
e9b9e26234
Update rabbitmq-components.mk
2015-12-03 15:38:50 +01:00
Michael Klishin
65aad56554
Merge branch 'master' into rabbitmq-stomp-6
2015-12-03 02:08:22 +03:00
Daniil Fedotov
8740133ad8
specs for api functions in processor
2015-12-01 17:47:36 +00:00
Jean-Sébastien Pédron
a3c8e174d6
Update rabbitmq-components.mk
2015-12-01 18:36:23 +01:00
Daniil Fedotov
f1c6dc9507
moved ReceiveFun definition for heartbeats to reader
2015-12-01 16:38:47 +00:00
Daniil Fedotov
cb4af5ab27
removed temp reader
2015-12-01 16:38:47 +00:00
Daniil Fedotov
2e85963221
processor is just module now, all gen_server and amqp consumer logic is in reader now
2015-12-01 16:38:47 +00:00
Daniil Fedotov
09130272f5
New stomp reader working
2015-12-01 16:38:47 +00:00
Daniil Fedotov
47b7139d84
rabbit_stomp_reader as gen_server2
2015-12-01 16:38:47 +00:00
Jean-Sébastien Pédron
e2aa8c7e41
Update rabbitmq-components.mk
2015-12-01 16:17:19 +01:00
Jean-Sébastien Pédron
961d52bf2c
Update rabbitmq-components.mk
2015-11-30 09:13:24 +01:00
Michael Klishin
7e26041949
Merge pull request #49 from rabbitmq/rabbitmq-web-stomp-28
...
Disable heartbeats when start fun is undefined
2015-11-26 16:34:47 +03:00
Loïc Hoguin
e135e19829
Remove unneeded TCP options from config in .app.src file
2015-11-26 14:02:00 +01:00
Loïc Hoguin
a03f7c07b8
Disable heartbeats when start fun is undefined
...
Allow passing 'undefined' instead of a fun for the start function.
When the processor receives this value, it simply uses 0,0 as the
heartbeat values which disables heartbeats completely and is
reported back to the client properly.
2015-11-26 11:20:19 +01:00
Jean-Sébastien Pédron
706b5d8778
Update rabbitmq-components.mk
2015-11-26 08:54:11 +01:00
Jean-Sébastien Pédron
7706655c13
Update rabbitmq-components.mk
2015-11-26 08:41:23 +01:00
Jean-Sébastien Pédron
3abd17dd44
Update erlang.mk
2015-11-25 10:36:16 +01:00
Jean-Sébastien Pédron
f37e5fd0cd
Update rabbitmq-components.mk
2015-11-25 10:35:24 +01:00
Loïc Hoguin
bfe2faa64d
Use rabbit_net:accept_ack instead of ranch:accept_ack
...
This function includes operations that must be performed by
processes owning sockets.
2015-11-24 20:16:30 +01:00
Michael Klishin
0ce10f6766
Ignore ./debug
2015-11-23 04:25:45 +03:00
Michael Klishin
11e215ff8c
Remove a comment that is fairly obvious
2015-11-23 04:25:22 +03:00
Jean-Sébastien Pédron
ec2febbcb0
Update rabbitmq-components.mk
2015-11-20 10:52:05 +01:00
Michael Klishin
70c6885305
Merge branch 'master' into rabbitmq-server-260
2015-11-19 16:42:41 +03:00
Jean-Sébastien Pédron
fef6930aa2
Update erlang.mk
2015-11-19 14:32:04 +01:00
Michael Klishin
30bd4a3730
Merge branch 'master' into rabbitmq-server-260
2015-11-19 14:11:18 +03:00
Jean-Sébastien Pédron
55cc89f322
Update erlang.mk
2015-11-18 19:14:47 +01:00
Jean-Sébastien Pédron
eab60e6efc
Update erlang.mk
2015-11-18 17:39:48 +01:00
Loïc Hoguin
f180b1783f
Switch to Ranch for connection handling
2015-11-17 15:41:34 +01:00
Michael Klishin
9042401c1b
Handle not_allowed results when trying to log in
2015-11-13 18:20:12 +03:00
Michael Klishin
1490a6f27a
Oops
2015-11-13 18:18:00 +03:00
Michael Klishin
ef675f3664
Group related headers
2015-11-13 16:51:54 +03:00
Jean-Sébastien Pédron
3b9403798a
Update erlang.mk
2015-11-10 13:12:32 +01:00
Jean-Sébastien Pédron
ae4aba3195
Update rabbitmq-components.mk
2015-11-10 13:11:17 +01:00
Jean-Sébastien Pédron
2133cdca5b
Update rabbitmq-components.mk
2015-11-05 20:51:34 +00:00
Jean-Sébastien Pédron
6d7912cb02
Update rabbitmq-components.mk
2015-11-03 15:12:30 +01:00
Jean-Sébastien Pédron
af2752779f
Update rabbitmq-components.mk
2015-11-02 10:20:51 +01:00
Jean-Sébastien Pédron
aa25187487
Update rabbitmq-components.mk
2015-10-30 17:32:57 +01:00
Jean-Sébastien Pédron
0e03624c1f
Update erlang.mk
2015-10-28 11:16:15 +01:00
Jean-Sébastien Pédron
87c360c2c3
Update rabbitmq-components.mk
2015-10-28 11:10:38 +01:00
Jean-Sébastien Pédron
8c3e2ff3f6
DEPS: Remove rabbit
2015-10-26 18:12:30 +01:00
Jean-Sébastien Pédron
7c46ce1975
Remove stale package.mk
2015-10-26 17:23:00 +01:00
Jean-Sébastien Pédron
b864c4f3cc
Update erlang.mk
2015-10-26 15:33:41 +01:00
Jean-Sébastien Pédron
102f9ba5f3
Update rabbitmq-components.mk
2015-10-26 11:15:33 +01:00
Jean-Sébastien Pédron
5c97496fda
Update rabbitmq-components.mk
2015-10-26 10:21:23 +01:00
Jean-Sébastien Pédron
273cc136e1
Update erlang.mk
2015-10-23 18:33:05 +02:00
Jean-Sébastien Pédron
350e124138
Update rabbitmq-components.mk
2015-10-23 16:05:48 +02:00
Jean-Sébastien Pédron
ea4df67415
Update erlang.mk
2015-10-22 18:34:46 +02:00
Jean-Sébastien Pédron
777caae44d
.travis.yml: Use double-quoted flow scalar for all Erlang versions
2015-10-21 15:36:16 +02:00
Jean-Sébastien Pédron
cf7d726426
.travis.yml: Cache apt packages
2015-10-21 15:35:15 +02:00
Jean-Sébastien Pédron
dfa373ea65
.travis.yml: Explain why we re-checkout
2015-10-21 15:33:41 +02:00
Jean-Sébastien Pédron
c3de29eac8
Re-checkout the tag or branch so git_rmq fetch method works
2015-10-21 15:14:20 +02:00
Jean-Sébastien Pédron
7a391631f1
Adapt .travis.yml to erlang.mk
2015-10-21 14:56:07 +02:00
Jean-Sébastien Pédron
e9be3ba658
pre-standalone-tests depends on test-build
...
This is required to have $(DEPS_DIR)/rabbitmq_test.
2015-10-21 14:53:33 +02:00
Jean-Sébastien Pédron
ac185334c6
Fix RabbitMQ configuration file path
2015-10-21 14:14:57 +02:00
Jean-Sébastien Pédron
e91f6902e8
ssl_lifecycle: Get SSL certs location from environment
2015-10-21 14:14:40 +02:00
Jean-Sébastien Pédron
fc95916ab8
test_util: Take rabbitmqctl location from environment
2015-10-21 13:13:48 +02:00
Jean-Sébastien Pédron
d1e9665dd4
Git: Ignore Python testsuite artifacts
2015-10-21 12:57:11 +02:00
Jean-Sébastien Pédron
e7d43a95af
test_runner: Let the Makefile setup PYTHONPATH for us
2015-10-21 12:55:30 +02:00
Jean-Sébastien Pédron
8990dbdf45
Update rabbitmq-components.mk
2015-10-19 17:35:45 +02:00
Jean-Sébastien Pédron
615a03509d
Update erlang.mk
2015-10-19 17:30:58 +02:00
Jean-Sébastien Pédron
f426c04799
Update rabbitmq-components.mk
2015-10-19 17:30:58 +02:00
Jean-Sébastien Pédron
69bc6cfd66
Initial move to erlang.mk
2015-10-19 17:30:58 +02:00
Giuseppe Privitera
968a10cff3
Merge branch 'stable'
2015-10-09 11:24:21 +01:00
Giuseppe Privitera
88a70ce00f
refactored ensure_endpoint/5 for readability
2015-10-07 17:37:58 +01:00
Giuseppe Privitera
54036de283
implemented user generated queue names for /exchange & /topic
...
destinations
2015-10-07 13:50:04 +01:00
Michael Klishin
b5673745ab
Merge branch 'stable'
2015-09-30 04:13:37 +08:00
Michael Klishin
f6ee772c6f
Make trailing LF character optional
...
Fixes #39 .
2015-09-30 04:02:11 +08:00
Michael Klishin
e1565a19ff
Merge branch 'stable'
2015-09-17 01:46:39 +03:00
Michael Klishin
75d18d2eab
Simplify
2015-09-17 01:25:36 +03:00
Giuseppe Privitera
d3e97cdff0
fix formatting
2015-09-16 21:39:38 +01:00
Giuseppe Privitera
194daff2df
added redelivered flag in MESSAGE frame headers
2015-09-16 18:31:51 +01:00
Michael Klishin
e04f811092
Merge branch 'stable'
2015-09-16 19:00:57 +03:00
Michael Klishin
a3f3317c10
Give a client some time to notice that connection was closed
2015-09-16 16:24:56 +03:00
Michael Klishin
6854d078f5
Split this test into two cases
2015-09-16 15:58:37 +03:00
Michael Klishin
802919a65e
We can use transient destinations here
2015-09-16 15:35:29 +03:00
Michael Klishin
32c4f201c2
Reformat with Emacs
2015-09-16 14:56:43 +03:00
Giuseppe Privitera
ceecc2474d
calling error/4 instead of error/3 to correctly format the log message
2015-09-15 14:43:04 +01:00
Giuseppe Privitera
5cca036fcc
fix indentation
2015-09-15 14:31:40 +01:00
Giuseppe Privitera
fb2c525b3f
close connection and terminate without crashing the reader process
2015-09-15 12:17:16 +01:00
Giuseppe Privitera
64e37eec75
fix formatting
2015-09-15 11:23:37 +01:00
Giuseppe Privitera
4263f7d48c
tidy terminate the processor
2015-09-15 10:05:10 +01:00
Giuseppe Privitera
632b7744d1
fix indentation
2015-09-14 17:48:02 +01:00
Giuseppe Privitera
d3824cfc33
changed error message to be STOMP specific
2015-09-14 17:41:09 +01:00
Giuseppe Privitera
6afdecedd3
added tests for duplicate consumer tag
2015-09-14 16:46:12 +01:00
Giuseppe Privitera
512bac7be5
log ERROR frame
2015-09-14 16:02:00 +01:00
Giuseppe Privitera
e075945d52
send an ERROR frame and disconnect when duplicate consumer tag
2015-09-14 15:40:27 +01:00
Michael Klishin
59051b38cd
Merge branch 'stable'
2015-09-10 02:07:01 +03:00
Michael Klishin
65ed305890
Port .travis.yml from master
2015-09-07 21:57:26 +03:00
Giuseppe Privitera
b4971bebb2
decreased number of concurrent STOMP connections
...
on OSX default max number of open file is 256 (ulimit -n)
2015-09-07 17:38:25 +02:00
Giuseppe Privitera
2089c8ce6d
added exclusive to STOMP headers parsing
2015-09-03 11:51:55 +01:00
Giuseppe Privitera
b367aa739f
removed PRINT macro
2015-09-03 10:49:58 +01:00
Giuseppe Privitera
856b012144
refactoring
2015-09-03 10:49:58 +01:00
Giuseppe Privitera
dad20cc49c
fixed failing tests because of changed defaults (/topic is now auto_delete=true)
2015-09-03 10:49:58 +01:00
Giuseppe Privitera
026f4bc7a3
better formatting
2015-09-03 10:49:58 +01:00
Giuseppe Privitera
f4b7d3da4c
set /exchange and /topic defaults: exclusive=false auto_delete=true
2015-09-03 10:49:58 +01:00
Giuseppe Privitera
5ec54a50b5
added auto-delete and durable to STOMP headers parsing
2015-09-03 10:49:57 +01:00
Michael Klishin
dbf366f3ce
Update README.md
2015-08-22 02:36:35 +03:00
Michael Klishin
f45f81edc2
Trigger a travis build, take 3
2015-08-22 02:07:28 +03:00
Gavin M. Roy
ae072041fe
Add travis-ci configuration
2015-08-21 18:45:13 -04:00
Michael Klishin
5b8ba91bbb
Merge branch 'stable'
2015-08-20 17:56:35 +03:00
Alvaro Videla
6b12a76c08
cosmetics
2015-08-20 16:09:53 +02:00
Giuseppe Privitera
a50bebc3ab
destructuring in function head
2015-08-20 14:08:24 +01:00
Giuseppe Privitera
19220fe721
added pika to test dependencies
2015-08-20 13:39:15 +01:00
Giuseppe Privitera
96eb5e4dd2
added python tests for queue properties (i.e. x-message-ttl, etc.)
2015-08-20 13:17:02 +01:00
Giuseppe Privitera
c533fd16d6
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
2015-08-20 13:17:02 +01:00
Michael Klishin
85037eb355
Relax this assertion a bit, wait less
2015-08-20 15:05:54 +03:00
Michael Klishin
2064d9e63d
Handle blank line responses, references #20
2015-08-20 14:57:28 +03:00
Michael Klishin
f9554d46a6
Adapt Erlang framing tests for #20
...
Due to the tests being accidentally commented out,
this came unnoticed.
We already have Python tests that test parsing of bodies
and headers with null characters.
One test needed adapting for #20 .
2015-08-20 14:06:19 +03:00
Michael Klishin
dc73e1720c
Make sure we run the Erlang test suite
...
They were commented out in d98eb00a
.
2015-08-20 13:29:13 +03:00
Jean-Sébastien Pédron
686c90ddd5
Use monotonic_time() to compute elapsed time
...
... not `erlang:now()` (deprecated) or `os:timestamp()` (which could go
backward).
References rabbitmq/rabbitmq-server#233 .
2015-08-05 15:29:00 +02:00
Giuseppe Privitera
abb6d67c24
run ACK/NACK tests for all STOMP versions (1.0, 1.1, 1.2)
2015-07-24 21:42:18 +03:00
Dmitrijus Glezeris
38c1645776
Only process the content-length header on the SEND command
2015-06-16 02:09:41 +03:00
Michael Klishin
b48eff9f23
This test can be much higher level
...
It trips on the recent LF patch for no good reason.
2015-06-16 01:58:50 +03:00
Michael Klishin
158116be97
Unbreak highlighting in python-mode
2015-06-16 01:58:50 +03:00
Dmitrijus Glezeris
a1b6e7883d
Added a newline character at the end of the frame
2015-06-16 01:58:50 +03:00
Michael Klishin
61af9cf856
Update README.md
2015-06-16 01:58:50 +03:00
Jean-Sébastien Pédron
d98eb00a18
Testsuite: Update to stomp.py 4.0.16
...
To help with the support of tests targetting a specific version of
STOMP, several helpers were added to base.py. The default STOMP version
is 1.0, the same as rabbitmq-stomp.
Fixes #12 .
2015-05-29 18:39:37 +02:00
Michael Klishin
d77af4af39
(c) year
2015-05-24 04:27:54 +03:00
Michael Klishin
050288c3cc
Don't use deprecated erlang:now/1
2015-04-30 20:06:07 +03:00
Jean-Sébastien Pédron
afe33f57f3
package.mk: Use $(MAKE) instead of hard-coding "make"
...
Fixes #9 .
2015-04-08 13:10:46 +02:00
Michael Klishin
056d5d443a
Ignore stomp.py checkout
2015-04-08 12:16:39 +02:00
Michael Klishin
44667ea7d6
Notify stomp_processor when reader fails with an exception
...
Why not just link the two?
Then any network-related issue would
produce a scary crash report in the SASL log and
we won't give the processor some time to finish
what it may still be doing.
Fixes #7 .
2015-04-08 12:16:39 +02:00
Michael Klishin
c3999a6c89
Sync CONTRIBUTING.md with the template one
2015-02-20 17:09:37 +03:00
Jean-Sébastien Pédron
cc10d36506
Merge branch 'stable'
2015-02-19 18:13:12 +01:00
Jean-Sébastien Pédron
3bb7f7ca9b
Convert .hgignore to .gitignore
2015-02-19 17:26:01 +01:00
Michael Klishin
291da45346
Sync CONTRIBUTING.md with the template one
2015-02-18 00:25:52 +03:00
Jean-Sébastien Pédron
631858b9ba
Merge branch 'stable'
2015-02-17 21:18:47 +01:00
Jean-Sébastien Pédron
f1bb8346ab
Remove the "moved to GitHub" warning.
2015-02-17 21:18:42 +01:00
Jean-Sebastien Pedron
89c2b2d92e
stable to default
2015-02-17 18:17:05 +01:00
Jean-Sebastien Pedron
37c0c75e2a
README.md: Warn about the move to GitHub
2015-02-17 18:16:44 +01:00
Michael Klishin
f4add3a82a
merge stable into default
2015-02-07 06:04:57 +03:00
Simon MacMullen
cd141310c6
stable to default
2015-01-29 13:23:21 +00:00
Michael Klishin
1e9b82641e
Link channel process, handle more exit cases
2015-01-29 08:46:14 +03:00
Michael Klishin
657cdac271
Handle system messages in the reader
2015-01-28 11:58:20 +03:00
Simon MacMullen
a02c37cbcd
Oops, that might not exist
2014-11-28 15:13:55 +00:00
Simon MacMullen
d7bf7b8dcb
Simplify. Enforce always running SSL tests. Don't create global variables in the Makefile namespace. Make the SSL test script work properly when run from the umbrella.
2014-11-28 14:40:13 +00:00
Simon MacMullen
5fb1698ef3
Oops
2014-11-28 11:30:48 +00:00
Simon MacMullen
337b151275
Rename this to avoid conflict with MQTT. Something of a hack, but it seems to work.
2014-11-28 09:46:40 +00:00
Simon MacMullen
1717b5d6ad
Updating to latest stomppy seems to be a huge task, so just patch the old stomppy to use TLSv1 for the time being.
2014-10-20 19:39:18 +01:00
Simon MacMullen
5acaa94ad9
poodle_check/1 has to come after ensure_ssl/0.
2014-10-20 15:54:11 +01:00
Simon MacMullen
bed0c7f0a5
Oops
2014-10-20 14:06:44 +01:00
Simon MacMullen
af835740f8
Test for old Erlang, and shout if we are vulnerable.
2014-10-20 14:04:18 +01:00
Michael Klishin
e2839a41a4
Extras => DeliveryCtx
2014-08-11 12:17:38 +04:00
Michael Klishin
73d50a4c95
amqp_channel:set_manual_flow_control/2 => amqp_channel:enable_delivery_flow_control/1
2014-08-09 16:05:40 +04:00