diff options
author | Ingela Anderton Andin <[email protected]> | 2012-12-19 11:28:11 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2012-12-19 12:29:35 +0100 |
commit | caf5dad14c1fc8f983d803bc3e011cd5a8e6cc62 (patch) | |
tree | 67fffdcacfba6cd64ca920c9da54805a4d43fd1a /lib/orber/src | |
parent | 3bd2ba0060f9bcb0d3bddd74a4a5763e520a533f (diff) | |
download | otp-caf5dad14c1fc8f983d803bc3e011cd5a8e6cc62.tar.gz otp-caf5dad14c1fc8f983d803bc3e011cd5a8e6cc62.tar.bz2 otp-caf5dad14c1fc8f983d803bc3e011cd5a8e6cc62.zip |
ssl & orber: Remove ssl:pid/1 (has been pointless since R14)
Diffstat (limited to 'lib/orber/src')
-rw-r--r-- | lib/orber/src/orber_iiop_net.erl | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/lib/orber/src/orber_iiop_net.erl b/lib/orber/src/orber_iiop_net.erl index 2eed0b538a..33e02e3c04 100644 --- a/lib/orber/src/orber_iiop_net.erl +++ b/lib/orber/src/orber_iiop_net.erl @@ -2,7 +2,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2011. All Rights Reserved. +%% Copyright Ericsson AB 1997-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -415,11 +415,10 @@ handle_info({'EXIT', Pid, _Reason}, State) when is_pid(Pid) -> ref = Ref, options = Options, proxy_options = POpts}] -> ets:delete(?CONNECTION_DB, Pid), unlink(Pid), - NewListen = new_listen_socket(Type, Listen, Port, Options), - {ok, NewPid} = orber_iiop_socketsup:start_accept(Type, NewListen, + {ok, NewPid} = orber_iiop_socketsup:start_accept(Type, Listen, Ref, POpts), link(NewPid), - ets:insert(?CONNECTION_DB, #listen{pid = NewPid, socket = NewListen, + ets:insert(?CONNECTION_DB, #listen{pid = NewPid, socket = Listen, port = Port, type = Type, ref = Ref, options = Options, proxy_options = POpts}), @@ -445,23 +444,6 @@ handle_info({'EXIT', Pid, _Reason}, State) when is_pid(Pid) -> handle_info(_, State) -> {noreply, State}. -new_listen_socket(normal, ListenFd, _Port, _Options) -> - ListenFd; -new_listen_socket(ssl, ListenFd, Port, Options) -> - Generation = orber_env:ssl_generation(), - if - Generation > 2 -> - ListenFd; - true -> - case is_process_alive(ssl:pid(ListenFd)) of - true -> - ListenFd; - _ -> - {ok, Listen, _NP} = orber_socket:listen(ssl, Port, Options, true), - Listen - end - end. - from_list(List) -> from_list(List, queue:new()). |