Commit Graph

2028 Commits

Author SHA1 Message Date
Loïc Hoguin d76750437b Use {active,once} instead of async_recv
A test had to be changed because closing the socket locally
does not trigger the condition we expect. It happened to work
before because async_recv is using a low level interface but
it wasn't really testing the right thing.
2019-01-15 14:37:03 +01:00
Michael Klishin b72cb3ca30 .travis.yml: sync Erlang and Elixir versions, require Erlang/OTP 21.2 2019-01-13 05:49:54 +03:00
Luke Bakken 3392a497a1 Update rabbitmq-components.mk 2019-01-09 12:54:48 -08:00
Luke Bakken 0c2ea091a2 Update rabbitmq-components.mk 2019-01-08 11:58:21 -08:00
Jean-Sébastien Pédron 638a8bc7f3 Travis CI: Update config from rabbitmq-common 2019-01-08 12:47:51 +01:00
Jean-Sébastien Pédron 6a6983bbc3 Travis CI: Update config from rabbitmq-common 2019-01-08 09:07:43 +01:00
Jean-Sébastien Pédron 6e5519559c Makefile: Remove the Hex.pm `maintainers` field from .app
It is now deprecated by Hex.pm.
2019-01-08 09:07:06 +01:00
Michael Klishin 26d4bf3d27 Update rabbitmq-components.mk 2018-12-06 18:28:33 +03:00
Michael Klishin d9f1c99a23 Update rabbitmq-components.mk 2018-12-06 00:21:06 +03:00
Jean-Sébastien Pédron 761a7e62d5 Update rabbitmq-components.mk 2018-11-30 14:56:41 +01:00
Jean-Sébastien Pédron fdf0985f50 Update rabbitmq-components.mk 2018-11-22 09:19:26 +01:00
kjnilsson bd074d7ef3 Update rabbitmq-components.mk 2018-10-29 12:43:10 +00:00
kjnilsson 0818e022d7 Handle basic.credit_drained frame
This frame is very specific to what the AMQP 1.0 plugin requires to work
and was emitted but not handled correctly. This implementation simply
handles the frame and forwards it on to the consuming process.

[#161256187]
2018-10-25 09:06:27 +01:00
Jean-Sébastien Pédron 7c5dadc93c Update rabbitmq-components.mk 2018-09-19 10:38:07 +02:00
Jean-Sébastien Pédron 37f3ead86a Update rabbitmq-components.mk 2018-09-11 14:22:20 +02:00
Michael Klishin 054b811252 Merge pull request #108 from rabbitmq/rabbitmq-erlang-client-107
AMQP(S) URI that specifies port without host should be an error
2018-08-09 18:00:18 +02:00
Jean-Sébastien Pédron 77a4e9e6a4 Update rabbitmq-components.mk 2018-08-09 17:44:06 +02:00
Luke Bakken dcf5637615 AMQP(S) URI that specifies port without host is an error
Fixes #107
2018-08-09 08:29:35 -07:00
Jean-Sébastien Pédron 10841b5954 Update rabbitmq-components.mk 2018-08-09 12:16:53 +02:00
Jean-Sébastien Pédron 67e22ebdc4 system_SUITE: Remove unused variable in init_per_testcase() 2018-06-07 12:13:14 +02:00
Jean-Sébastien Pédron 32451438d6 system_SUITE: Accept Erlang 21 stacktrace in channel_death()
[#157964874]
2018-06-07 12:13:10 +02:00
Jean-Sébastien Pédron 5e26aafeab Update rabbitmq-components.mk 2018-06-07 11:31:28 +02:00
Michael Klishin 3e36da8e6a Use 2047 instead of 2048
Since channel 0 exists on every connection for negotiation and
error communication.
2018-05-09 12:40:17 -05:00
Michael Klishin d06c845f49 Change channel_max default to 2048
Part of rabbitmq/rabbitmq-server#1593.
2018-05-09 10:05:46 -05:00
Jean-Sébastien Pédron 02d948d237 Update erlang.mk 2018-04-11 10:52:10 +02:00
Jean-Sébastien Pédron a1f222e8c9 Update rabbitmq-components.mk 2018-04-11 10:51:13 +02:00
Jean-Sébastien Pédron 38cefc3a38 Update rabbitmq-components.mk 2018-04-11 10:09:56 +02:00
Jean-Sébastien Pédron 7b7a217126 Travis CI: Update config from rabbitmq-common 2018-04-10 12:50:13 +02:00
Jean-Sébastien Pédron 113715b21c Update erlang.mk 2018-03-02 19:02:23 +01:00
Jean-Sébastien Pédron 3f44a92da9 Update rabbitmq-components.mk 2018-01-30 15:23:22 +01:00
Luke Bakken 5e0f07ba25 Update rabbitmq-components.mk 2018-01-29 16:22:06 -08:00
Jean-Sébastien Pédron c3b33bfeb3 Merge branch 'take-hostname-from-server-test-certificate' 2018-01-24 17:42:32 +01:00
Jean-Sébastien Pédron 5c984147bf system_SUITE: Take SNI hostname from server's certificate
The goal is to be consistent between the `Makefile` used to generate the
certificates and the Erlang code.

For instance, on some systems, the certificates were generated with a
short hostname while `inet:gethostname()`  could return an FQDN.
2018-01-24 17:39:11 +01:00
Jean-Sébastien Pédron 94b450d7d7 Update rabbitmq-components.mk 2018-01-23 17:21:15 +01:00
Jean-Sébastien Pédron 250d6da88c Update rabbitmq-components.mk 2018-01-23 15:31:05 +01:00
Jean-Sébastien Pédron ab0340d88a Update rabbitmq-components.mk 2018-01-23 12:50:19 +01:00
Diana Corbacho 9581c252cc Update rabbitmq-components.mk 2018-01-22 22:13:15 +00:00
Diana Corbacho f2738dac6a Update rabbitmq-components.mk 2018-01-22 21:53:59 +00:00
Luke Bakken 832c0e6195 Port fb82f5b8 to v3.6.x
Erlang 20.2 checks CN value in a server certificate by default, so provide the hostname in the TLS connection options

Ports parts of fb82f5b8f4a3ef56e5672592893199f00afb5741 from the v3.7.x branch

[152879230]
2018-01-03 08:02:22 -08:00
Luke Bakken b845a1e054 Merge branch 'rabbitmq-erlang-client-153560538' into rabbitmq-erlang-client-153560538-master 2017-12-15 11:14:52 -08:00
Luke Bakken 66bda6647f Only log a warning if the user has not set verify 2017-12-15 11:13:14 -08:00
Jean-Sébastien Pédron bc5cec15cb Travis CI: Update config from rabbitmq-common 2017-12-15 15:08:26 +01:00
Jean-Sébastien Pédron e3d588ec7f Travis CI: Update config from rabbitmq-common 2017-12-15 14:45:28 +01:00
Jean-Sébastien Pédron b16eeb91c2 Travis CI: Update config from rabbitmq-common 2017-12-15 08:44:26 +01:00
Jean-Sébastien Pédron d8fea197c6 Update rabbitmq-components.mk 2017-12-14 14:38:42 +01:00
Luke Bakken 3fea5a86b7 Ensure that verify_fun and server_name_indication are added to .config params, too
Fix issue with module for verify_fun

Fix bug in function clause

Fix test errors in OTP 20 due to empty tuple in list

Do not enable server_name_indication by default, nor verify_peer
2017-12-11 09:36:26 -08:00
Luke Bakken ab642a390f [152879230]
Add failing tests
Tests pass
Enable SNI in SSL test
Add server_name_indication when host is a hostname
Make verify_peer the default for amqps connections, requiring the user to opt-out
2017-12-05 11:09:03 -08:00
Jean-Sébastien Pédron 447dfb96f1 Update rabbitmq-components.mk 2017-12-01 17:11:22 +01:00
Jean-Sébastien Pédron 009c243286 Update rabbitmq-components.mk 2017-12-01 15:16:03 +01:00
Jean-Sébastien Pédron 95d996880d Update rabbitmq-components.mk 2017-11-28 14:00:28 +01:00
Jean-Sébastien Pédron 41a0617764 Update rabbitmq-components.mk 2017-11-28 13:06:32 +01:00
Jean-Sébastien Pédron 5ab6f2d6f2 Update rabbitmq-components.mk
[ci skip]
2017-11-28 12:59:42 +01:00
Jean-Sébastien Pédron 30bac7cf73 Update rabbitmq-components.mk 2017-11-28 12:47:03 +01:00
Jean-Sébastien Pédron 3bc9715aea Merge branch 'stable' 2017-11-06 19:23:29 +01:00
Jean-Sébastien Pédron ced27c2770 Travis CI: Update config from rabbitmq-common 2017-11-06 19:22:46 +01:00
Jean-Sébastien Pédron ef6b216190 Travis CI: Update config from rabbitmq-common
The `.travis.sh` accompanying shell script is not needed anymore.

[#152509619]
2017-11-03 17:57:32 +01:00
Jean-Sébastien Pédron c3445716c3 Merge branch 'stable' 2017-11-03 17:57:19 +01:00
Jean-Sébastien Pédron 230da13d16 system_SUITE: EADDRNOTAVAIL can be returned when IPv6 is not configured
... in addition to ENETUNREACH. This happens on Travis CI VMs for
instance.

[#152509619]
2017-11-03 11:14:55 +01:00
Jean-Sébastien Pédron 388a27b682 Travis CI: Import .travis.yml from rabbitmq-common
[#152509619]
2017-11-02 18:08:15 +01:00
Jean-Sébastien Pédron aeea791bf1 erlang.mk: Disable `proper` plugin
[#152509619]
2017-11-02 18:07:58 +01:00
Jean-Sébastien Pédron b6a9e41172 Merge branch 'stable' 2017-10-13 14:58:40 +02:00
Jean-Sébastien Pédron 6f894a6624 Update rabbitmq-components.mk 2017-10-13 14:33:01 +02:00
Jean-Sébastien Pédron 1ca8e8d793 Update rabbitmq-components.mk 2017-10-13 13:11:37 +02:00
Jean-Sébastien Pédron 700b4fa5d7 Update rabbitmq-components.mk 2017-10-13 12:15:37 +02:00
Michael Klishin 83330fbafa Merge branch 'stable'
Conflicts:
	src/amqp_connection.erl
2017-10-12 18:40:39 +03:00
Luke Bakken 24479be3a0 Since apps have deps, we should be using ensure_all_started 2017-10-06 10:19:14 -07:00
Michael Klishin 4d6d4ca9c5 Update rabbitmq-components.mk 2017-09-13 17:53:59 -04:00
Michael Klishin 0873b9d94a Update rabbitmq-components.mk 2017-09-13 17:45:20 -04:00
Michael Klishin 37c8d4e815 Update rabbitmq-components.mk 2017-09-12 19:52:52 -04:00
Michael Klishin cf6f7c7139 Update rabbitmq-components.mk 2017-09-12 12:41:41 -04:00
Daniil Fedotov c4b4b61d15 Merge branch 'stable' 2017-08-30 19:32:17 +01:00
Daniil Fedotov 9c227520df Update erlang.mk 2017-08-30 18:54:33 +01:00
Michael Klishin c9480c81c1 Merge branch 'stable'
Conflicts:
	rabbitmq-components.mk
2017-07-27 23:40:00 +03:00
Jean-Sébastien Pédron 13ff71e411 amqp_network_connection: Expect the socket_closed just after `Connection.Close`
... from the server.

This is fine because the server might not want to wait for all clients
to answer with `Connection.Close-Ok` and prefer to close the TCP
connection immediately instead.

Without this, the connection process exits with
`socket_closed_unexpectedly`.

This is a minor issue, but it was discovered while tracking the problem
fixed in commit b35dc5e74686a928f67cbd7f2611e5dd1e43ac2d. With those two
fixes, a server-initiated connection close is handled more gracefully.

[#149584741]
2017-07-27 18:28:23 +02:00
Jean-Sébastien Pédron b3302edaa4 amqp_channel_sup_sup: Set `amqp_channel_sup` restart strategy to `infinity`
With the previous strategy of `brutal_kill` meant that channel processes
(and all process under the `amqp_channel_sup` supervision tree) would be
killed when a connection was closed and the connection process exited
before channel processes.

The `infinity` restart strategy is what is recommended by the Erlang
documentation for supervisors and is the strategy used by all other
supervisors in this project.

For instance, this issue caused federation links to crash when the
remote server closed the connection. We could see this kind of errors
in the rabbitmq-federation `exchange_SUITE:restart_upstream` testcase:

    ** Generic server <0.768.0> terminating
    ** Last message in was {'DOWN',#Ref<0.0.2.2678>,process,<0.777.0>,killed}
    ** When Server state == {state,
                             ...,
                             <0.771.0>,<0.777.0>,
                             ...}
    ** Reason for termination ==
    ** {downstream_channel_down,killed}

(`<0.777.0>` is the channel process which was killed)

[#149584741]
2017-07-27 18:27:58 +02:00
Michael Klishin fc2c9b1aa2 Erlang/OTP 19.2 is now the minimum supported version.
Part of rabbitmq/rabbitmq-server#1305.

[#149563549]
2017-07-27 11:15:36 +02:00
Michael Klishin 7665c24974 Update rabbitmq-components.mk 2017-07-26 03:48:11 +03:00
Michael Klishin f5decc2b1c Update rabbitmq-components.mk 2017-07-26 02:26:57 +03:00
Jean-Sébastien Pédron b0f24916f8 Merge branch 'stable' 2017-06-26 18:25:46 +02:00
Luke Bakken 19fbb09413 Small changes to Travis CI build
Use before_cache to make it clear why kiex_cleanup is called.
No sense in exporting PATH twice.
2017-06-23 13:13:23 -07:00
Luke Bakken 99d198b8ce Ensure ensure_kiex is called 2017-06-22 13:45:43 -07:00
Luke Bakken 32cab0509b rewrite shell script to RMQ team standard 2017-06-22 11:54:49 -07:00
Luke Bakken 7fc64ed3ad Try to fix enotsup error by using latest kiex
remove command that expects input

Add CircleCI configuration

Build and cache OTP 20 in Travis CI

increase WAIT for Travis

Build GNU make 4.2.1 too

Install kerl, change language to generic

Add build matrix

remove circleci, add two OTP versions
2017-06-22 08:07:22 -07:00
Luke Bakken 945c098f49 fix Travis CI build 2017-06-19 09:12:14 -07:00
Luke Bakken 2bf3384d90 Add unit test for topic permissions map 2017-06-19 08:48:11 -07:00
Michael Klishin 1905e30e67 Bump call timeout to 60s
To match default server heartbeat timeout.

While at it, increase initial connection timeout to 60s
to match (heartbeat timeout doesn't matter here specifically but
related in general).
2017-06-15 20:13:03 +03:00
kjnilsson c6e5a10035 Replace infinite timeouts with sensible defaults.
Change gen_server:call timeouts to use a configurable
default that is cached inside each process' process dictionary.
Also make supervisor shutdown timeouts use
the SUPERVISOR_WAIT value.

[#147178169]
2017-06-15 15:46:21 +01:00
Jean-Sébastien Pédron 85c8499a42 Use the new rabbit_*_common modules in rabbitmq-common
They were created in order to move their associated rabbit_* module to
rabbitmq-server to solve a dependency of rabbitmq-common on
rabbitmq-server

[#118490793]
2017-06-13 15:32:24 +02:00
Michael Klishin af13d840e8 Update rabbitmq-components.mk 2017-06-12 20:11:39 +03:00
Michael Klishin 3f000d5b07 Update rabbitmq-components.mk 2017-06-12 18:35:32 +03:00
Michael Klishin 2b492aba4c Match on function head per @Ayanda-D's advice 2017-06-12 01:11:43 +03:00
Michael Klishin c28c5ddbff Don't fail with badrecord when adapter_info is undefined
E.g. when connection failed because vhost access wasn't granted.

Fixes #83.
2017-06-11 01:47:51 +03:00
Michael Klishin ee01292540 Merge branch 'stable' 2017-06-02 18:14:58 +03:00
Michael Klishin 2c72623c7b Update rabbitmq-components.mk 2017-06-02 17:51:19 +03:00
Michael Klishin da61d21f3b Update rabbitmq-components.mk 2017-06-02 00:43:13 +03:00
Michael Klishin 2975297981 Update rabbitmq-components.mk 2017-06-01 18:01:25 +03:00
Jean-Sébastien Pédron a6c679271b Merge branch 'stable' 2017-05-16 17:54:19 +02:00
Jean-Sébastien Pédron cba8d60c26 Makefile: Load the new `rabbitmq-early-test.mk` early-stage plugin
See the corresponding commit in rabbitmq-common for an explanation.

[#144697185]
2017-05-16 17:01:51 +02:00
Jean-Sébastien Pédron 20fb0705b6 Update erlang.mk 2017-05-16 16:57:38 +02:00
lazedo 8f12de2cc7 supress warning for handlers when reason is shutdown 2017-05-11 20:58:38 +03:00
lazedo b687dc85b0 supress warning for handlers when reason is shutdown 2017-05-11 18:33:50 +01:00
Michael Klishin 0ed56a70b8 Delegate generic EXIT handling to implementation modules
The catch-all-and-ignore clause resulted in connections not actually
dying when they were expected to, wrecking havoc to some RabbitMQ server
test suites.

Per discussion with @dcorbacho.

This amends #79.
2017-05-11 18:24:19 +03:00
Michael Klishin 298e1c7d03 Delegate generic EXIT handling to implementation modules
The catch-all-and-ignore clause resulted in connections not actually
dying when they were expected to, wrecking havoc to some RabbitMQ server
test suites.

Per discussion with @dcorbacho.
2017-05-11 18:11:48 +03:00
Michael Klishin 476ff53b5b Merge branch 'stable' 2017-05-10 03:48:59 +03:00
Michael Klishin 69591877bd Improve logging 2017-05-10 03:48:40 +03:00
Michael Klishin a8b9fa9020 Merge branch 'stable' 2017-05-10 01:05:04 +03:00
Paul Schoenfelder 1feb5c857b Properly handle trapped exits in amqp_gen_connection
- Trapped exits were being forwarded to the connection module when it
  has no knowledge of what to do with them
- These unhandled exit messages were causing errors to occur
  unnecessarily
- This changeset ensures trapped exits are handled by the trapping
  process
2017-05-09 15:09:36 -05:00
Jean-Sébastien Pédron 692163ee1e amqp_channel: Use the new rabbit_amqqueue_common module
rabbit_amqqueue will shortly be moved to rabbitmq-server to fix a
dependency of this module on the broker.

[#118490793]
2017-05-04 19:29:31 +02:00
Jean-Sébastien Pédron 987c437106 amqp_network_connection: Use the new rabbit_ssl_options module
rabbit_networking will shortly be moved to rabbitmq-server to fix a
dependency of this module on the broker.

[#118490793]
2017-05-04 18:52:04 +02:00
Jean-Sébastien Pédron 21b3a3a292 amqp_direct_connection.erl: Use rabbit_cert_info
... to query certificate informations, instead of rabbit_ssl.

The former is provided by rabbitmq-common while the latter is in
rabbitmq-server. It allows to remove a dependency of the Erlang client
on the broker.

[#118490793]
2017-05-04 18:08:03 +02:00
Daniil Fedotov 85c1946b6a Replace dicts with maps 2017-04-27 10:10:49 +01:00
Jean-Sébastien Pédron d779ff4c79 Merge branch 'stable' 2017-04-19 12:34:38 +02:00
Jean-Sébastien Pédron a523296b6a Update erlang.mk 2017-04-19 11:59:17 +02:00
Michael Klishin 317e8f913c Merge branch 'stable' 2017-04-02 21:51:08 +03:00
Michael Klishin c9f57023f6 (c) year 2017-04-02 21:46:37 +03:00
Jean-Sébastien Pédron e030052d2e Merge branch 'stable' 2017-03-16 17:43:25 +01:00
Jean-Sébastien Pédron 65bb84d007 Makefile: Load rabbitmq-hexpm.mk Erlang.mk plugin 2017-03-16 16:32:26 +01:00
Arnaud Cogoluègnes ebd1655e5e Merge branch 'stable' 2017-03-08 16:25:33 +01:00
Arnaud Cogoluègnes 05c7a11e97 Add spec and test for URI parsing
References #76
2017-03-08 14:48:18 +01:00
Arnaud Cogoluègnes d396d59779 Accept binaries in URI parsing
Fixes #76
2017-03-08 10:59:22 +01:00
Arnaud Cogoluègnes 2acdfd6ec8 Unwrap real socket for SSL info
Part of rabbitmq/rabbitmq-server#589
2017-02-21 17:15:40 +01:00
Michael Klishin 0fa533c4ab Update rabbitmq-components.mk 2017-02-11 23:26:00 +03:00
Michael Klishin 0277536e89 Update rabbitmq-components.mk 2017-02-10 11:16:15 +03:00
Michael Klishin fef1f854a6 Update rabbitmq-components.mk 2017-02-10 03:06:08 +03:00
Michael Klishin aecb67661d Merge branch 'stable' 2017-02-08 16:52:51 +03:00
Michael Klishin 1546bb6a39 Update rabbitmq-components.mk 2017-02-08 16:38:07 +03:00
Michael Klishin a37363498a merge branch 'stable' 2017-02-06 19:49:59 +03:00
Michael Klishin e93a43b31a Update rabbitmq-components.mk 2017-02-06 19:23:45 +03:00
Jean-Sébastien Pédron a7bc4542a8 Update rabbitmq-components.mk 2017-02-02 17:16:46 +01:00
Michael Klishin b202038778 merge branch 'stable' 2017-01-31 18:21:04 +03:00
Michael Klishin 81b1f57ad9 Update rabbitmq-components.mk 2017-01-31 18:06:19 +03:00
Diana Corbacho 859948de8b Add user who performed action to direct connection notifications 2017-01-26 08:33:04 +00:00
Jean-Sébastien Pédron b20b0151a7 Merge branch 'stable' 2016-12-19 10:49:51 +01:00
Jean-Sébastien Pédron 7980a11a1c Support publish to Hex.pm
To do it, run:
    make hex-publish PROJECT_VERSION=3.6.6

The published copy depends on rabbit_common from Hex.pm, not
from Git. To achieve that, rabbitmq-components.mk is replaced by
rabbit_common/mk/rabbitmq-components.hexpm.mk.

[#134268483]
2016-12-15 15:08:20 +01:00
Jean-Sébastien Pédron 400c610d74 Merge branch 'stable' 2016-12-13 11:48:23 +01:00
Jean-Sébastien Pédron 4762c2a22f system_SUITE: Skip basic_get_* if they hit ENETUNREACH
This happens when eg. IPv6 is not configured on the host, which can be
the case on Travis CI.
2016-12-13 11:40:55 +01:00
Jean-Sébastien Pédron 6506746eed Travis CI: Import changes from rabbitmq-auth-backend-amqp 2016-12-12 12:40:38 +01:00
Jean-Sébastien Pédron 15e854dcc3 Merge branch 'stable' 2016-12-09 19:15:44 +01:00
Jean-Sébastien Pédron 86b25536ea Update rabbitmq-components.mk 2016-12-08 19:14:41 +01:00
Jean-Sébastien Pédron 625c7848ef 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 pacakges
such as xsltproc.
2016-12-08 17:13:52 +01:00
Jean-Sébastien Pédron f3a1e1d5dc Merge branch 'stable' 2016-12-07 14:57:37 +01:00
Jean-Sébastien Pédron 01434f6540 Update rabbitmq-components.mk 2016-12-06 15:49:52 +01:00
Jean-Sébastien Pédron 9cb0eab735 Makefile: PROJECT_VERSION is set in rabbitmq-components.mk
[#130992027]
2016-12-06 13:43:17 +01:00
Jean-Sébastien Pédron 2576dec512 Update rabbitmq-components.mk
Remove PROJECT_VERSION computation from Makefile: rabbitmq-components.mk
takes care of it.

[#130992027]
2016-12-06 13:35:40 +01:00
Jean-Sébastien Pédron 2d2a35b0ec Makefile: Use a meaningful default version based on git-describe(1)
instead of `0.0.0`.

[#130992027]
2016-12-06 12:43:19 +01:00
Jean-Sébastien Pédron 01967c212a Move from .app.src to Makefile variables
This is the recommended way with Erlang.mk.

When working from the source archive created by `make source-dist`,
the version is taken from `git-revisions.txt`, a file created during
the creation of the source archive. When used for the broker, the
version is inherited from rabbitmq-serevr-release. If the variable is
specified on the command line as well, it takes precedence over the one
in `git-revisions.txt`, like any Makefile variables.

Erlang.mk automatically adds $(PROJECT)_sup to the registered processes.
We'll need to rename `amqp_sup` to that name or modify Erlang.mk to
avoid this bogus registered name.

[#130992027]
2016-12-05 19:42:09 +01:00
Jean-Sébastien Pédron 7cb5c50e57 Makefile: Sync exclusion list with rabbitmq-server-release
[#130992027]
2016-12-05 19:38:58 +01:00
Jean-Sébastien Pédron d276173239 Ignore hexer and PACKAGES/ 2016-12-05 19:37:30 +01:00
Michael Klishin 39ee89a298 Merge branch 'stable' 2016-11-29 21:29:25 +03:00
Michael Klishin f14ac2f7a4 Update rabbitmq-components.mk 2016-11-29 20:59:22 +03:00
Jean-Sébastien Pédron 6184ad32b8 Merge branch 'stable' 2016-11-25 16:25:52 +01:00
Jean-Sébastien Pédron 3e72d01a2a amqp_connection: Start syntax_tools and compiler
This is a follow-up commit to 982018da2b.

While here, remove some trailing whitespaces.

References #72 and rabbitmq/rabbitmq-common#149.
2016-11-25 15:53:07 +01:00
Michael Klishin 982018da2b Start syntax_tools and compiler apps explicitly
References #72 and rabbitmq/rabbitmq-common#149.

We don't use Erlang releases so need to do this manually :(
Per discussion in the team.
2016-11-25 14:24:15 +03:00
Jean-Sébastien Pédron 26ec901c22 Merge branch 'stable' 2016-11-25 10:53:15 +01:00
Jean-Sébastien Pédron 754a149d70 Update rabbitmq-components.mk 2016-11-25 10:50:51 +01:00
Jean-Sébastien Pédron 418e637c0f Merge branch 'stable' 2016-11-25 10:11:25 +01:00
Jean-Sébastien Pédron b9202b8420 Update rabbitmq-components.mk 2016-11-25 10:08:13 +01:00
Jean-Sébastien Pédron 057c6c8b26 Merge branch 'stable' 2016-11-23 18:12:06 +01:00
Jean-Sébastien Pédron 6b1af79592 Update rabbitmq-components.mk 2016-11-23 18:05:57 +01:00
Gerhard Lazu bd086821b3 Merge branch 'stable' 2016-11-22 16:24:54 +00:00
Gerhard Lazu 3bcd929082 Update erlang.mk 2016-11-22 16:17:37 +00:00
Gerhard Lazu 0ccf87d3a0 Update rabbitmq-components.mk 2016-11-22 16:16:25 +00:00
Jean-Sébastien Pédron ab04a8571b Update erlang.mk 2016-11-14 12:09:30 +01:00
Daniil Fedotov 5381e4795b Start rabbit_common with ensure_all_started to start all dependencies (e.g. jsx) 2016-11-11 12:42:03 +00:00
Jean-Sébastien Pédron 16b0e0512c Update rabbitmq-components.mk 2016-11-10 16:56:19 +01:00
Jean-Sébastien Pédron 01fce9ffd9 Merge branch 'stable' 2016-09-23 14:46:48 +02:00
Jean-Sébastien Pédron 6bbd2ee652 Update rabbitmq-components.mk 2016-09-23 11:23:01 +02:00
Jean-Sébastien Pédron bc789cd120 Update erlang.mk 2016-09-22 17:55:54 +02:00
Jean-Sébastien Pédron 68e68998f1 Common Test helpers were moved to rabbitmq-ct-helpers
[#130086871]
2016-09-20 15:50:53 +02:00
Jean-Sébastien Pédron 7005785b2e Makefile: Explicitely list all DEPS
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.

[#130086871]
2016-09-19 12:06:52 +02:00
Jean-Sébastien Pédron 5a051baec0 Makefile: Remove duplicate ERLC_OPTS definition
Flags are already set in `rabbitmq-common/mk/rabbitmq-build.mk`.
2016-09-16 14:38:37 +02:00
Jean-Sébastien Pédron a4193c9192 Merge branch 'stable' 2016-09-15 16:33:34 +02:00
Jean-Sébastien Pédron d0645a4bb3 Update rabbitmq-components.mk 2016-09-15 15:44:33 +02:00
Daniil Fedotov b70f144f27 Report node and pid in connection start/stop events 2016-09-12 14:55:31 +01:00
Michael Klishin da5b71c2de A few more open_unmanaged_connection heads 2016-09-06 14:51:27 +03:00
Jean-Sébastien Pédron a890dabd31 Merge branch 'stable' 2016-09-02 15:46:29 +02:00
Jean-Sébastien Pédron 4ee153088c Update rabbitmq-components.mk 2016-09-02 13:22:23 +02:00
Jean-Sébastien Pédron b7fd2119cb Update rabbitmq-components.mk 2016-09-02 12:03:28 +02:00
Dustin Koupal cd66fe742c pass connection_timeout to the SSL upgrade 2016-08-26 02:39:42 +03:00
Dustin Koupal 907c0217a2 pass connection_timeout to the SSL upgrade 2016-08-25 16:10:34 -07:00
Michael Klishin 5c0742b116 Back port open_unmanaged_connection/{1,2,3} from master 2016-07-20 13:49:35 +03:00
Michael Klishin 27fc6162e5 Handle errors from amqp_connection:start/1 2016-07-20 13:46:59 +03:00
Michael Klishin 763b1660dc Update rabbitmq-components.mk 2016-07-14 15:44:08 +03:00
Michael Klishin 1769138eed Update rabbitmq-components.mk 2016-07-14 15:37:26 +03:00
Michael Klishin 2d7e356b73 Update rabbitmq-components.mk 2016-07-14 13:37:16 +03:00
Michael Klishin e25c88338a Update rabbitmq-components.mk 2016-07-14 13:19:55 +03:00
Jean-Sébastien Pédron 962088b005 Merge branch 'stable' 2016-07-05 17:32:01 +02:00
Jean-Sébastien Pédron 7bc49d0499 Travis CI: Import branch management from rabbitmq-shovel 2016-07-05 17:26:18 +02:00
Jean-Sébastien Pédron 4cd16c051a Travis CI: Test against Erlang 18.3 and 19.0 2016-07-05 17:25:59 +02:00
Jean-Sébastien Pédron d7f15726d7 Use CT_OPTS from rabbitmq-build.mk 2016-07-05 17:17:58 +02:00
Jean-Sébastien Pédron f65d962a3b system_SUITE: Set importance on all common_test messages 2016-07-05 17:04:28 +02:00
Jean-Sébastien Pédron cb6cb571d8 Merge branch 'stable' 2016-07-05 16:32:21 +02:00
Jean-Sébastien Pédron 6d106559ae system_SUITE: Remove two messages which are not that useful 2016-07-05 16:31:41 +02:00
Michael Klishin 43fb6352d2 Missing export 2016-07-02 17:27:59 +03:00
Michael Klishin efa219699f Introduce rabbit_ct_client_helpers:open_unmanaged_connection/3 2016-07-02 17:24:34 +03:00
Jean-Sébastien Pédron 31998e5ac4 Merge branch 'stable' 2016-06-30 18:10:45 +02:00
Jean-Sébastien Pédron 8a5a1a20d2 rabbit_ct_client_helpers: Lower importance of logged messages
This allows to easily silence them without loosing too much information.
2016-06-30 18:09:43 +02:00
Jean-Sébastien Pédron d74c19bf9c Use `rand` directly in master because we require Erlang 18.3
References rabbitmq/rabbitmq-server#860.
[#122335241]
2016-06-29 13:19:33 +02:00
Jean-Sébastien Pédron 69a5f9d547 Merge branch 'stable' 2016-06-29 13:18:43 +02:00
Jean-Sébastien Pédron f2e43e2214 Use the new `rand_compat` module to transition from `random` to `rand`
References #860.
[#122335241]
2016-06-29 13:18:03 +02:00
Jean-Sébastien Pédron e24aa0c887 Merge branch 'stable' 2016-06-29 13:16:37 +02:00
Jean-Sébastien Pédron ddc19bb666 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 13:14:30 +02:00
Jean-Sébastien Pédron ebdcff6959 rabbit_ct_client_helpers: Style 2016-06-29 13:14:06 +02:00
Jean-Sébastien Pédron 9fdf2a3701 Git: Ignore `xrefr` 2016-06-29 13:02:26 +02:00
Michael Klishin 8df57e8bd8 Merge branch 'stable' 2016-06-26 18:11:24 +03:00
Michael Klishin d8e5817527 Make amqp_connection:close/4 public
Fixes #59
2016-06-26 18:11:00 +03:00
Dinis Rosário 9eb22b6980 Fix compile error with Erlang OTP 19 2016-06-26 17:11:37 +03:00
Dinis Rosário ee8c3f7125 Fix compile error with Erlang OTP 19 2016-06-25 22:15:16 +01:00
Michael Klishin a23d9535a0 Merge branch 'stable' 2016-06-21 16:45:39 +03:00
Michael Klishin fbe867f27d Ignore channel closure return value entirely 2016-06-21 16:45:10 +03:00
Michael Klishin fa7daf578a Merge branch 'stable' 2016-06-21 16:38:56 +03:00
Michael Klishin 799ea53458 Connection and channel closure can return 'closing' so handle it 2016-06-21 16:15:28 +03:00
Michael Klishin 542c5291ff Introduce open_connection_and_channel/1 2016-06-21 16:01:49 +03:00
Michael Klishin 494869744b Merge branch 'stable' 2016-06-19 21:52:15 +03:00
Michael Klishin 73d49d1e60 Introduce rabbit_ct_client_helpers:open_channel/1 2016-06-19 21:51:45 +03:00
Daniil Fedotov b3267cba00 Use bound OTP workers timeouts 2016-06-17 01:28:11 +03:00
Michael Klishin 4ccbf50adf Merge pull request #61 from rabbitmq/rabbitmq-server-541
Use bound OTP workers timeouts
2016-06-17 01:07:19 +03:00
Daniil Fedotov 8f569e92ff Use bound OTP workers timeouts 2016-06-16 13:41:33 +01:00
Michael Klishin 83e870db68 Merge branch 'stable' 2016-06-16 00:55:31 +03:00
Michael Klishin a9b9b34123 Introduce rabbit_ct_client_helpers:open_unmanaged_connection/1 2016-06-16 00:54:52 +03:00
Jean-Sébastien Pédron 6fb119474d Merge branch 'stable' 2016-06-15 17:48:20 +02:00
Jean-Sébastien Pédron 9d0afd9eb5 rabbit_ct_client_helpers: New helpers to open connections
o  one to open a connection not managed by the central process
o  one to get the connection and channel PIDs in one call
2016-06-15 17:37:20 +02:00
Michael Klishin 7ef6d4554a Merge branch 'stable' 2016-05-29 23:35:06 +03:00
Michael Klishin d959d931f6 Update rabbitmq-components.mk 2016-05-29 23:21:53 +03:00
Michael Klishin cd8ec67e14 Merge branch 'stable' 2016-05-28 09:51:50 -07:00
Michael Klishin c889c738ee Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md 2016-05-28 14:22:47 +03:00
Jean-Sébastien Pédron 025ef32a1b Travis CI: Erlang 18.3 is now the minimum supported version
References rabbitmq/rabbitmq-server#546
[#116527251]
2016-05-26 11:02:15 +02:00
Daniil Fedotov c7dd5e2c36 Merge branch 'stable' 2016-05-20 11:06:57 +01:00
Tiago Oliveira 719ffee2f5 Connection returns user internal info.
It will allows the client connection to return internal user information that is delivered by direct connection.
2016-05-19 09:47:26 -03:00
Jean-Sébastien Pédron c52d501aa1 Merge branch 'stable' 2016-05-18 18:01:11 +02:00
Brandon Shroyer 769714dc9b ci/test.sh: Take Ranch from the Docker image
While here, make the script working directory agnostic

Fixes #48.
[#117833039]
2016-05-18 17:04:52 +02:00
kjnilsson a93e3a578f Merge branch 'stable' 2016-05-18 13:22:27 +01:00
Karl Nilsson 9e6ba8332d Update rabbitmq-components.mk 2016-05-18 12:47:58 +01:00
Michael Klishin d26427d4a2 Don't use time_compat in tests either 2016-05-17 07:58:08 -07:00
Michael Klishin c8113f9f3f Update rabbitmq-components.mk 2016-05-17 17:35:20 +03:00
Michael Klishin 5fe6b3c1ca Update rabbitmq-components.mk 2016-05-17 10:16:07 +03:00
Michael Klishin 9ba8602a96 Don't use time_compat 2016-05-17 09:48:48 +03:00
Jean-Sébastien Pédron 0aaa9a039d Merge branch 'stable' 2016-05-06 19:29:05 +02:00
Jean-Sébastien Pédron a8ee95f66f rabbit_ct_client_helpers: New function to publish/consume messages 2016-05-06 19:28:38 +02:00
Jean-Sébastien Pédron 0c234019bb Merge branch 'stable' 2016-05-06 11:13:34 +02:00
Jean-Sébastien Pédron 439481ede7 rabbit_ct_client_helpers: New close_channels_and_connection/2 function
... to close everything still open.
2016-05-06 11:12:35 +02:00
Jean-Sébastien Pédron 4c438484ae rabbit_ct_client_helpers: Fix recursion in close_everything()
The recursion was interrupted after the first channel closed.
2016-05-06 11:11:12 +02:00
Jean-Sébastien Pédron e2d0d27108 Merge branch 'stable' 2016-05-03 20:25:10 +02:00
Jean-Sébastien Pédron 02a13295ff rabbit_ct_client_helpers: Open connections and channels on demand
... insteard of preparing them at the beginning.
2016-05-03 20:24:09 +02:00
Jean-Sébastien Pédron 1de4688540 Merge branch 'stable' 2016-05-03 15:55:24 +02:00
Jean-Sébastien Pédron f83f0a00e6 system_SUITE: Update after the rabbit_ct_* API refinements 2016-05-03 15:54:50 +02:00
Jean-Sébastien Pédron cd5082b458 Merge branch 'stable' 2016-04-29 11:52:29 +02:00
Jean-Sébastien Pédron 79855f21ee rabbit_ct_client_helpers: Handle the lack of running channel process
... in close_channel/1.
2016-04-29 11:51:36 +02:00
Jean-Sébastien Pédron 97f61a9ad6 Merge branch 'stable' 2016-04-29 11:11:07 +02:00
Jean-Sébastien Pédron 58acf0d1a2 rabbit_ct_client_helpers: Handle the lack of connection
... in terminate_connection/1.
2016-04-29 11:08:52 +02:00