From cfe3394cf05e2f309c1264ddc761cfa01ad6586a Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Thu, 13 Jan 2022 13:37:55 +0800 Subject: [PATCH] =?UTF-8?q?fx:=20=E6=B5=8B=E8=AF=95=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/proxyPt/ntPptListener.erl | 1 - src/ssl/ntSslListener.erl | 1 - src/tcp/ntTcpListener.erl | 1 - src/udp/ntUdpSrv.erl | 2 -- 4 files changed, 5 deletions(-) diff --git a/src/proxyPt/ntPptListener.erl b/src/proxyPt/ntPptListener.erl index 6abaa4e..1b11e66 100644 --- a/src/proxyPt/ntPptListener.erl +++ b/src/proxyPt/ntPptListener.erl @@ -92,7 +92,6 @@ loop(Parent, State) -> -define(DefTcpOpts, [{nodelay, true}, {reuseaddr, true}, {send_timeout, 30000}, {send_timeout_close, true}]). init({AptSupName, Port, ListenOpts}) -> - process_flag(trap_exit, true), TcpOpts = ?getLValue(tcpOpts, ListenOpts, []), LastTcpOpts = ntCom:mergeOpts(?DefTcpOpts, TcpOpts), %% Don't active the socket... diff --git a/src/ssl/ntSslListener.erl b/src/ssl/ntSslListener.erl index 50a887f..e012cd9 100644 --- a/src/ssl/ntSslListener.erl +++ b/src/ssl/ntSslListener.erl @@ -92,7 +92,6 @@ loop(Parent, State) -> -define(DefTcpOpts, [{nodelay, true}, {reuseaddr, true}, {send_timeout, 30000}, {send_timeout_close, true}]). init({AptSupName, Port, ListenOpts}) -> - process_flag(trap_exit, true), TcpOpts = ?getLValue(tcpOpts, ListenOpts, []), LastTcpOpts = ntCom:mergeOpts(?DefTcpOpts, TcpOpts), %% Don't active the socket... diff --git a/src/tcp/ntTcpListener.erl b/src/tcp/ntTcpListener.erl index fd58ffc..a55fd98 100644 --- a/src/tcp/ntTcpListener.erl +++ b/src/tcp/ntTcpListener.erl @@ -92,7 +92,6 @@ loop(Parent, State) -> -define(DefTcpOpts, [{nodelay, true}, {reuseaddr, true}, {send_timeout, 30000}, {send_timeout_close, true}]). init({AptSupName, Port, ListenOpts}) -> - process_flag(trap_exit, true), TcpOpts = ?getLValue(tcpOpts, ListenOpts, []), LastTcpOpts = ntCom:mergeOpts(?DefTcpOpts, TcpOpts), %% Don't active the socket... diff --git a/src/udp/ntUdpSrv.erl b/src/udp/ntUdpSrv.erl index c5ab0cc..c30611f 100644 --- a/src/udp/ntUdpSrv.erl +++ b/src/udp/ntUdpSrv.erl @@ -95,8 +95,6 @@ loop(Parent, State) -> -define(DefUdpOpts, [binary, {reuseaddr, true}]). init({Port, UoOpts}) -> - process_flag(trap_exit, true), - UdpOpts = ?getLValue(udpOpts, UoOpts, []), LastUdpOpts = ntCom:mergeOpts(?DefUdpOpts, UdpOpts), %% Don't active the socket...