Michael Klishin
628669d739
Update rabbitmq-components.mk
2017-06-12 20:18:07 +03:00
Michael Klishin
5d422c26d2
Update rabbitmq-components.mk
2017-06-12 18:35:49 +03:00
Arnaud Cogoluègnes
c6fdd8fa17
Support variable expansion in topic authz
...
Part of rabbitmq/rabbitmq-server#1229
2017-06-12 10:35:52 +02:00
Michael Klishin
5038656062
Merge branch 'stable'
2017-06-10 09:29:07 +03:00
Luke Bakken
fe222abd81
Add failing test that shows custom headers are not returned.
...
Add some more test cases and fix simple_test_send_rec use the headers argument to conn.send
Add AMQP -> STOMP test validating a custom header
Send headers in AMQP message and verify STOMP receipt
2017-06-09 11:15:37 -07:00
Michael Klishin
9b478b0482
Squash a warning
2017-06-09 01:14:14 +03:00
Michael Klishin
124bad8b75
Merge branch 'stable'
2017-06-02 18:11:54 +03:00
Michael Klishin
21b7b42ab5
Update rabbitmq-components.mk
2017-06-02 17:51:36 +03:00
Daniil Fedotov
a41fbd3ad6
New CLI helpers API
2017-06-02 10:12:08 +01:00
Michael Klishin
acfc9e1359
Update rabbitmq-components.mk
2017-06-02 00:43:33 +03:00
Michael Klishin
2f37e16eeb
Update rabbitmq-components.mk
2017-06-01 18:01:51 +03:00
Jean-Sébastien Pédron
af771c705b
Merge branch 'stable'
2017-05-16 18:12:03 +02:00
Jean-Sébastien Pédron
3b71f71721
Makefile: Load the new `rabbitmq-early-plugin.mk` early-stage plugin
...
See the corresponding commit in rabbitmq-common for an explanation.
[#144697185 ]
2017-05-16 17:38:16 +02:00
Jean-Sébastien Pédron
4e164da6af
Update erlang.mk
2017-05-16 17:38:16 +02:00
Michael Klishin
fcdd8ef3d5
Merge branch 'stable'
...
Conflicts:
src/rabbit_stomp_reader.erl
2017-05-03 12:50:39 +02:00
D Corbacho
abaaa976a5
Merge pull request #111 from rabbitmq/rabbitmq-web-stomp-75
...
Make sure maybe_delete_durable_sub/3 handles server-initiated cancelation
2017-05-03 10:49:40 +01:00
Michael Klishin
297ba01d5a
Wording
2017-05-03 11:44:25 +02:00
Diana Corbacho
004a424af4
Fix dialyzer warnings and termination during initialisation of the reader
2017-05-03 10:25:04 +01:00
Diana Corbacho
fa70d8efb6
Fix types and dialyzer warnings
2017-05-03 08:58:31 +01:00
Michael Klishin
667ab9cf35
Pass undefined instead of a blank #stomp_frame
...
This way function head matching is unambiguous.
2017-05-03 01:03:48 +02:00
Michael Klishin
9198198ddb
Make sure maybe_delete_durable_sub/3 handles server-initiated cancelation
...
Part of rabbitmq/rabbitmq-web-stomp#75.
[#144738809 ]
2017-05-02 23:59:17 +02:00
Diana Corbacho
507690dfac
Default to 0 for stats calculation
...
rabbitmq-management-agent-45
[#144693945 ]
2017-05-02 14:24:02 +01:00
Daniil Fedotov
921732bad4
Replace dicts to maps for internal structures
2017-04-24 13:52:47 +01:00
Jean-Sébastien Pédron
3a0aa2a4f5
Merge branch 'stable'
2017-04-19 16:22:44 +02:00
Jean-Sébastien Pédron
0fbe13709b
Update erlang.mk
2017-04-19 12:05:17 +02:00
Michael Klishin
9be7f2efe0
Merge branch 'stable'
2017-04-02 22:03:38 +03:00
Michael Klishin
bbd0835011
(c) year
2017-04-02 21:49:30 +03:00
Michael Klishin
000c140509
Ignore test/config_schema_SUITE_data/schema/
2017-03-20 19:13:41 +03:00
Daniil Fedotov
db74639159
Config schema test for plugin
...
Part of [#141481501 ]
Moved from rabbitmq-server
2017-03-17 11:02:07 +00:00
Jean-Sébastien Pédron
4ec02aaa62
Merge branch 'stable'
2017-03-08 10:06:32 +01:00
Jean-Sébastien Pédron
0de0421d6e
connections_SUITE: Match the new `connection_coarse_metrics` field
...
The tuple returned by a read of `connection_coarse_metrics` contains a
new counter at the end. We ignore it but the pattern matching must be
updated.
Before this, the testcase failed with the following error:
connections_SUITE:stats failed on line 150
Reason: {badmatch,[{<13606.2176.0>,38,117,6572,0}]}
2017-03-08 09:10:36 +01:00
Arnaud Cogoluègnes
d5f85fcae7
Set copyright year to 2017 in topic_SUITE.erl
2017-02-15 17:00:04 +01:00
Arnaud Cogoluègnes
23b2995d45
Add proxy protocol Cuttlefish option mapping
...
Part of rabbitmq/rabbitmq-server#589
2017-02-13 13:43:10 +01:00
Arnaud Cogoluègnes
f8379c5816
Polish proxy protocol test suite
...
Add license header, add call to rabbit_ct_helpers:testcase_started.
References rabbitmq/rabbitmq-server#589
2017-02-13 10:44:22 +01:00
Michael Klishin
7f621e8217
Update rabbitmq-components.mk
2017-02-11 23:29:41 +03:00
Michael Klishin
d13e8bb93f
Update rabbitmq-components.mk
2017-02-10 11:16:42 +03:00
Michael Klishin
347583f238
Update rabbitmq-components.mk
2017-02-10 01:55:18 +03:00
Arnaud Cogoluègnes
3f95ad9a9c
Add support for proxy protocol
...
Part of rabbitmq/rabbitmq-server#589
2017-02-09 10:11:38 +01:00
Michael Klishin
a9b3e86dbf
Update rabbitmq-components.mk
2017-02-08 16:38:24 +03:00
Michael Klishin
897cf929bc
merge branch 'stable'
2017-02-06 19:52:08 +03:00
Michael Klishin
59756d6fcb
Update rabbitmq-components.mk
2017-02-06 19:24:02 +03:00
Michael Klishin
c0a28600b6
Merge pull request #101 from rabbitmq/rabbitmq-server-1085
...
Add topic authorisation for consumption
2017-02-06 01:22:44 +03:00
Michael Klishin
cd65c2131f
This constant isn't used
2017-02-06 01:13:08 +03:00
Jean-Sébastien Pédron
732d3e1412
Update rabbitmq-components.mk
2017-02-02 17:17:20 +01:00
Arnaud Cogoluègnes
1ce89c541b
Merge branch 'master' into rabbitmq-server-1085
2017-01-31 17:45:24 +01:00
Michael Klishin
aa1d1a1c4a
merge branch 'stable'
2017-01-31 18:20:07 +03:00
Michael Klishin
b36e86d1ac
Update rabbitmq-components.mk
2017-01-31 18:06:36 +03:00
Diana Corbacho
1004f3e24a
Merge branch 'stable'
2017-01-27 20:49:52 +00:00
Diana Corbacho
06314a0cc4
Add heartbeat to stats
2017-01-27 16:54:32 +00:00
Diana Corbacho
0a711ef29b
Test all stats are present
2017-01-27 12:45:04 +00:00
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