事件:'drop'
¥Event: 'drop'
当连接数达到 server.maxConnections
的阈值时,服务器将丢弃新的连接并触发 'drop'
事件。如果是 TCP 服务器,参数如下,否则参数为 undefined
。
¥When the number of connections reaches the threshold of server.maxConnections
,
the server will drop new connections and emit 'drop'
event instead. If it is a
TCP server, the argument is as follows, otherwise the argument is undefined
.
-
data
<Object> 传给事件监听器的参数。¥
data
<Object> The argument passed to event listener.-
localAddress
<string> 本地地址。¥
localAddress
<string> Local address. -
localPort
<number> 本地端口。¥
localPort
<number> Local port. -
localFamily
<string> 本地族。¥
localFamily
<string> Local family. -
remoteAddress
<string> 远程地址。¥
remoteAddress
<string> Remote address. -
remotePort
<number> 远程端口。¥
remotePort
<number> Remote port. -
remoteFamily
<string> 远程 IP 系列。'IPv4'
或'IPv6'
。¥
remoteFamily
<string> Remote IP family.'IPv4'
or'IPv6'
.
-