diff options
author | Ingela Anderton Andin <[email protected]> | 2018-04-20 19:50:17 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-05-23 13:09:45 +0200 |
commit | 72aaa1bb0cd2352fc8708a1a89b44e5791f49356 (patch) | |
tree | 63cb1ca78c7b282432beedf5a2e821ca526757d2 /lib/ssl/src/ssl_connection_sup.erl | |
parent | f03603762806ac96cdca4a2c4f3b2b8b3190741a (diff) | |
download | otp-72aaa1bb0cd2352fc8708a1a89b44e5791f49356.tar.gz otp-72aaa1bb0cd2352fc8708a1a89b44e5791f49356.tar.bz2 otp-72aaa1bb0cd2352fc8708a1a89b44e5791f49356.zip |
ssl: Generalize DTLS packet multiplexing
We want to prepare the code for more advanced DTLS usage and possibility
to run over SCTP. First assumption was that the demultiplexer process
"dtls listener" was needed for UDP only and SCTP could be made more TLS
like. However the assumption seems not to hold. This commit prepares
for customization possibilities.
Diffstat (limited to 'lib/ssl/src/ssl_connection_sup.erl')
-rw-r--r-- | lib/ssl/src/ssl_connection_sup.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ssl/src/ssl_connection_sup.erl b/lib/ssl/src/ssl_connection_sup.erl index 1a1f43e683..1aa7c5844f 100644 --- a/lib/ssl/src/ssl_connection_sup.erl +++ b/lib/ssl/src/ssl_connection_sup.erl @@ -51,12 +51,12 @@ init([]) -> ListenOptionsTracker = listen_options_tracker_child_spec(), DTLSConnetionManager = dtls_connection_manager_child_spec(), - DTLSUdpListeners = dtls_udp_listeners_spec(), + DTLSListeners = dtls_listeners_spec(), {ok, {{one_for_one, 10, 3600}, [TLSConnetionManager, ListenOptionsTracker, DTLSConnetionManager, - DTLSUdpListeners + DTLSListeners ]}}. @@ -91,9 +91,9 @@ listen_options_tracker_child_spec() -> Type = supervisor, {Name, StartFunc, Restart, Shutdown, Type, Modules}. -dtls_udp_listeners_spec() -> - Name = dtls_udp_listener, - StartFunc = {dtls_udp_sup, start_link, []}, +dtls_listeners_spec() -> + Name = dtls_listener, + StartFunc = {dtls_listener_sup, start_link, []}, Restart = permanent, Shutdown = 4000, Modules = [], |