Commit Graph

88 Commits

Author SHA1 Message Date
Michael Klishin ec4f1dba7d
(c) year bump: 2022 => 2023 2023-01-01 23:17:36 -05:00
Michael Klishin c38a3d697d
Bump (c) year 2022-03-21 01:21:56 +04:00
Philip Kuryloski 8f9de08de7 Also assert no missing suites for all other deps 2021-07-12 18:05:55 +02:00
Carl Hörberg 681cb78b0d Test that proxy dest address is picked up in all plugins 2021-03-31 11:28:40 +02:00
Michael Klishin 52479099ec
Bump (c) year 2021-01-22 09:00:14 +03:00
Michael Klishin f6e77db3d3 Switch to MPL2 2020-07-15 03:02:19 +03:00
Michael Klishin 284a75c04b Unify Ranch ref construction for all listeners
This makes the refs predictable and easy to compute
from a listener record. Then suspending all listeners
becomes a lot simpler.

While at it, make protocol applications clean up
their listeners when they stop. This way tests
and other callers that have to stop the app
would not need to know anything about
its listeners.

Part of rabbitmq/rabbitmq-server#2321
2020-06-24 04:27:34 +03:00
Jean-Sébastien Pédron 90884e4346 Update copyright (year 2020) 2020-03-10 17:01:22 +01:00
Michael Klishin d736248cd3 (c) bump 2019-12-29 05:50:38 +03:00
Michael Klishin 38160e0c76 Don't include max_connections into socket options
It is rejected as an unsupported value.
Use Ranch transport options directly instead.

References #28.
Closes #55.
2019-06-07 12:22:08 +03:00
Michael Klishin 84430e557b Make web_mqtt.tcp.max_connections configurable via ini-style config file
References #28, #55.
2019-06-07 09:38:13 +03:00
Spring Operator b443fa10a6 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
   ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
   ([https](https://e2project.org) result AnnotatedConnectException).
* http://erlang.2086793.n4.nabble.com/initializing-library-applications-without-processes-td2094473.html (200) with 1 occurrences could not be migrated:
   ([https](https://erlang.2086793.n4.nabble.com/initializing-library-applications-without-processes-td2094473.html) result SSLHandshakeException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
   ([https](https://nitrogenproject.com/) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
   ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
   ([https](https://yaws.hyber.org) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
   ([https](https://choven.ca) result ConnectTimeoutException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
  https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
  https://erldb.org ([https](https://erldb.org) result UnknownHostException).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloudi.org/ with 27 occurrences migrated to:
  https://cloudi.org/ ([https](https://cloudi.org/) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
  https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
  https://www.actordb.com/ ([https](https://www.actordb.com/) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
  https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200).
* http://www.rabbitmq.com/community-plugins.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/community-plugins.html ([https](https://www.rabbitmq.com/community-plugins.html) result 200).
* http://www.rabbitmq.com/plugin-development.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/plugin-development.html ([https](https://www.rabbitmq.com/plugin-development.html) result 200).
* http://www.rabbitmq.com/plugins.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/plugins.html ([https](https://www.rabbitmq.com/plugins.html) result 200).
* http://www.rabbitmq.com/web-mqtt.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/web-mqtt.html ([https](https://www.rabbitmq.com/web-mqtt.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
  https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
  https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
  https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
  https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301).
* http://www.mozilla.org/MPL/ with 10 occurrences migrated to:
  https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
  https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301).
2019-03-20 03:25:32 -05:00
Luke Bakken f17eff13f7 Modify test so generated ciphers are in the expected order 2018-12-31 11:59:06 -08:00
Michael Klishin ac867ef45d Remove debug tracing 2018-12-18 05:02:01 +03:00
Michael Klishin ec5e78563b Lower the timeout since it's expected here 2018-12-18 04:30:25 +03:00
Michael Klishin 4cbeaf0e73 Integration tests for #52
[#162720877]
2018-12-18 04:03:07 +03:00
Michael Klishin 8a03489505 Make sure a TCP listener is started by default
References #44, #49.

Per discussion with @acogoluegnes.
2018-12-12 15:38:56 +03:00
Luke Bakken 4c09348aa0 Merge pull request #49 from rabbitmq/rabbitmq-web-mqtt-48
Support web_mqtt.ssl.listener combined with other web_mqtt.ssl.* settings
2018-12-11 11:35:40 -08:00
Michael Klishin a45a7633b1 Support web_mqtt.ssl.listener combined with other web_mqtt.ssl.* settings
Closes #48.
2018-12-11 21:58:00 +03:00
Michael Klishin b10407ed81 Merge branch 'master' into ciphers-in-new-style-config
Conflicts:
	test/config_schema_SUITE_data/rabbitmq_web_mqtt.snippets
2018-12-11 18:00:59 +03:00
Michael Klishin 6bfc6a4664 Merge pull request #44 from rabbitmq/rabbitmq-web-mqtt-31
Add settings to disable TCP and TLS listeners explicitly
2018-12-11 17:11:23 +03:00
Arnaud Cogoluègnes 81725f34df Add proxy_protocol flag to new configuration format
Fixes #46
2018-12-11 11:02:05 +01:00
Michael Klishin 6774806048 Bring web_mqtt.ssl.ip back in this test 2018-12-11 03:59:36 +03:00
Michael Klishin 03709f9f93 Support more web_mqtt.ssl.* options, including cipher suites
References rabbitmq/rabbitmq-server#1712, rabbitmq/rabbitmq-server#1745.
2018-12-11 03:40:03 +03:00
Luke Bakken 4c5c72dc5f Add settings to disable TCP and TLS listeners explicitly
Fixes #31
2018-12-10 16:20:57 -08:00
Loïc Hoguin d44bae553f Add PROXY protocol support 2018-12-04 14:52:16 +01:00
Michael Klishin 97a08e78a5 Make it possible to configure WebSocket options such as compression
While at it, correctly configure connection inactivity
timeout with modern Cowboy versions.

Closes #34.
References rabbitmq/rabbitmq-web-stomp#89.

[#161053821]
2018-10-08 21:19:12 +03:00
Michael Klishin 1bd714f705 One more config schema test case 2018-09-03 21:03:14 +02:00
Luke Bakken db9b7f1bd2 Add support for a listener configuration parameter that uses the cuttlefish ip datatype, and associated tests
Ensure ip address is in format expected by ranch:start_listener
2018-03-23 16:02:30 -07:00
Jean-Sébastien Pédron a5fdd5bc68 Merge branch 'stable' 2017-05-31 11:06:14 +02:00
Jean-Sébastien Pédron 08d77e9c6e rfc6455_client: Replace crypto:rand_bytes/1 by crypto:strong_rand_bytes/1
The former is deprecated for some time and is entirely removed in Erlang
20.0. This obviously causes the testsuite to fail with this version of
Erlang (or more exactly, it hangs because the `undef` exception is
missed).

crypto:strong_rand_bytes/1 is already available in Erlang R16B03 so we
can use it directly. No need for a compat module.

[#145213041]
2017-05-31 11:03:10 +02:00
Michael Klishin f9688950de Merge branch 'stable' 2017-04-02 22:04:40 +03:00
Michael Klishin 2da7008647 (c) year 2017-04-02 21:50:02 +03:00
Michael Klishin ca342d92d2 Port config schema tests from Web STOMP 2017-03-20 21:41:59 +03:00
Daniil Fedotov 1d4cb0103b Naming and dependencies 2016-06-24 14:05:54 +01:00
Daniil Fedotov a56bc5ed29 Move to common_tests 2016-06-24 13:15:16 +01:00
Michael Klishin 267127647c Copy, (c) info updates 2016-01-16 16:22:06 +03:00
Loïc Hoguin f8e7f86eed Add a small test suite
Fix an issue where connection would fail if sec-websocket-protocol
header wasn't set (which is perfectly normal).
2016-01-07 15:39:03 +01:00