Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ef416a63
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ef416a63
编写于
8月 21, 2008
作者:
M
michaelm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6258215: Num of backlog in ServerSocket(int, int) should be mentioned more explicitly
Summary: updated javadoc Reviewed-by: chegar
上级
19dd8191
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
40 addition
and
22 deletion
+40
-22
src/share/classes/java/net/ServerSocket.java
src/share/classes/java/net/ServerSocket.java
+24
-12
src/share/classes/javax/net/ssl/SSLServerSocket.java
src/share/classes/javax/net/ssl/SSLServerSocket.java
+16
-10
未找到文件。
src/share/classes/java/net/ServerSocket.java
浏览文件 @
ef416a63
...
@@ -142,14 +142,18 @@ class ServerSocket implements java.io.Closeable {
...
@@ -142,14 +142,18 @@ class ServerSocket implements java.io.Closeable {
* as its argument to ensure the operation is allowed.
* as its argument to ensure the operation is allowed.
* This could result in a SecurityException.
* This could result in a SecurityException.
*
*
* <P>The <code>backlog</code> argument must be a positive
* The <code>backlog</code> argument is the requested maximum number of
* value greater than 0. If the value passed is equal or less
* pending connections on the socket. Its exact semantics are implementation
* than 0, then the default value will be assumed.
* specific. In particular, an implementation may impose a maximum length
* or may choose to ignore the parameter altogther. The value provided
* should be greater than <code>0</code>. If it is less than or equal to
* <code>0</code>, then an implementation specific default will be used.
* <P>
* <P>
*
*
* @param port the port number, or <code>0</code> to use a port
* @param port the port number, or <code>0</code> to use a port
* number that is automatically allocated.
* number that is automatically allocated.
* @param backlog the maximum length of the queue.
* @param backlog requested maximum length of the queue of incoming
* connections.
*
*
* @exception IOException if an I/O error occurs when opening the socket.
* @exception IOException if an I/O error occurs when opening the socket.
* @exception SecurityException
* @exception SecurityException
...
@@ -187,13 +191,17 @@ class ServerSocket implements java.io.Closeable {
...
@@ -187,13 +191,17 @@ class ServerSocket implements java.io.Closeable {
* as its argument to ensure the operation is allowed.
* as its argument to ensure the operation is allowed.
* This could result in a SecurityException.
* This could result in a SecurityException.
*
*
* <P>The <code>backlog</code> argument must be a positive
* The <code>backlog</code> argument is the requested maximum number of
* value greater than 0. If the value passed is equal or less
* pending connections on the socket. Its exact semantics are implementation
* than 0, then the default value will be assumed.
* specific. In particular, an implementation may impose a maximum length
* or may choose to ignore the parameter altogther. The value provided
* should be greater than <code>0</code>. If it is less than or equal to
* <code>0</code>, then an implementation specific default will be used.
* <P>
* <P>
* @param port the port number, or <code>0</code> to use a port
* @param port the port number, or <code>0</code> to use a port
* number that is automatically allocated.
* number that is automatically allocated.
* @param backlog the listen backlog
* @param backlog requested maximum length of the queue of incoming
* connections.
* @param bindAddr the local InetAddress the server will bind to
* @param bindAddr the local InetAddress the server will bind to
*
*
* @throws SecurityException if a security manager exists and
* @throws SecurityException if a security manager exists and
...
@@ -321,11 +329,15 @@ class ServerSocket implements java.io.Closeable {
...
@@ -321,11 +329,15 @@ class ServerSocket implements java.io.Closeable {
* If the address is <code>null</code>, then the system will pick up
* If the address is <code>null</code>, then the system will pick up
* an ephemeral port and a valid local address to bind the socket.
* an ephemeral port and a valid local address to bind the socket.
* <P>
* <P>
* The <code>backlog</code> argument must be a positive
* The <code>backlog</code> argument is the requested maximum number of
* value greater than 0. If the value passed is equal or less
* pending connections on the socket. Its exact semantics are implementation
* than 0, then the default value will be assumed.
* specific. In particular, an implementation may impose a maximum length
* or may choose to ignore the parameter altogther. The value provided
* should be greater than <code>0</code>. If it is less than or equal to
* <code>0</code>, then an implementation specific default will be used.
* @param endpoint The IP address & port number to bind to.
* @param endpoint The IP address & port number to bind to.
* @param backlog The listen backlog length.
* @param backlog requested maximum length of the queue of
* incoming connections.
* @throws IOException if the bind operation fails, or if the socket
* @throws IOException if the bind operation fails, or if the socket
* is already bound.
* is already bound.
* @throws SecurityException if a <code>SecurityManager</code> is present and
* @throws SecurityException if a <code>SecurityManager</code> is present and
...
...
src/share/classes/javax/net/ssl/SSLServerSocket.java
浏览文件 @
ef416a63
...
@@ -108,9 +108,12 @@ public abstract class SSLServerSocket extends ServerSocket
...
@@ -108,9 +108,12 @@ public abstract class SSLServerSocket extends ServerSocket
* <P>
* <P>
* A port number of <code>0</code> creates a socket on any free port.
* A port number of <code>0</code> creates a socket on any free port.
* <P>
* <P>
* The <code>backlog</code> argument must be a positive
* The <code>backlog</code> argument is the requested maximum number of
* value greater than 0. If the value passed if equal or less
* pending connections on the socket. Its exact semantics are implementation
* than 0, then the default value will be assumed.
* specific. In particular, an implementation may impose a maximum length
* or may choose to ignore the parameter altogther. The value provided
* should be greater than <code>0</code>. If it is less than or equal to
* <code>0</code>, then an implementation specific default will be used.
* <P>
* <P>
* If there is a security manager, its <code>checkListen</code>
* If there is a security manager, its <code>checkListen</code>
* method is called with the <code>port</code> argument as its
* method is called with the <code>port</code> argument as its
...
@@ -118,8 +121,8 @@ public abstract class SSLServerSocket extends ServerSocket
...
@@ -118,8 +121,8 @@ public abstract class SSLServerSocket extends ServerSocket
* in a SecurityException.
* in a SecurityException.
*
*
* @param port the port on which to listen
* @param port the port on which to listen
* @param backlog
how many connections may be pending before
* @param backlog
requested maximum length of the queue of incoming
*
the system should start rejecting new requests
*
connections.
* @throws IOException if an I/O error occurs when creating the socket
* @throws IOException if an I/O error occurs when creating the socket
* @throws SecurityException if a security manager exists and its
* @throws SecurityException if a security manager exists and its
* <code>checkListen</code> method doesn't allow the operation.
* <code>checkListen</code> method doesn't allow the operation.
...
@@ -150,16 +153,19 @@ public abstract class SSLServerSocket extends ServerSocket
...
@@ -150,16 +153,19 @@ public abstract class SSLServerSocket extends ServerSocket
* <P>
* <P>
* A port number of <code>0</code> creates a socket on any free port.
* A port number of <code>0</code> creates a socket on any free port.
* <P>
* <P>
* <P>The <code>backlog</code> argument must be a positive
* The <code>backlog</code> argument is the requested maximum number of
* value greater than 0. If the value passed if equal or less
* pending connections on the socket. Its exact semantics are implementation
* than 0, then the default value will be assumed.
* specific. In particular, an implementation may impose a maximum length
* or may choose to ignore the parameter altogther. The value provided
* should be greater than <code>0</code>. If it is less than or equal to
* <code>0</code>, then an implementation specific default will be used.
* <P>
* <P>
* If <i>address</i> is null, it will default accepting connections
* If <i>address</i> is null, it will default accepting connections
* on any/all local addresses.
* on any/all local addresses.
*
*
* @param port the port on which to listen
* @param port the port on which to listen
* @param backlog
how many connections may be pending before
* @param backlog
requested maximum length of the queue of incoming
*
the system should start rejecting new requests
*
connections.
* @param address the address of the network interface through
* @param address the address of the network interface through
* which connections will be accepted
* which connections will be accepted
* @throws IOException if an I/O error occurs when creating the socket
* @throws IOException if an I/O error occurs when creating the socket
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录