Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
62f8a661
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看板
提交
62f8a661
编写于
10月 05, 2018
作者:
R
robm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8205330: InitialDirContext ctor sometimes throws NPE if the server has sent a disconnection
Reviewed-by: chegar, dfuchs
上级
5b3ebe43
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
16 deletion
+10
-16
src/share/classes/com/sun/jndi/ldap/LdapClient.java
src/share/classes/com/sun/jndi/ldap/LdapClient.java
+10
-16
未找到文件。
src/share/classes/com/sun/jndi/ldap/LdapClient.java
浏览文件 @
62f8a661
/*
* Copyright (c) 1999, 201
7
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
8
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -115,8 +115,8 @@ public final class LdapClient implements PooledConnection {
boolean
isLdapv3
;
// Used by LdapCtx
int
referenceCount
=
1
;
// Used by LdapCtx for check for sharing
Connection
conn
;
// Connection to server; has reader thread
// used by LdapCtx for StartTLS
final
Connection
conn
;
// Connection to server; has reader thread
// used by LdapCtx for StartTLS
final
private
PoolCallback
pcb
;
final
private
boolean
pooled
;
...
...
@@ -433,19 +433,17 @@ public final class LdapClient implements PooledConnection {
(
new
Throwable
()).
printStackTrace
();
}
if
(
referenceCount
<=
0
&&
conn
!=
null
)
{
if
(
referenceCount
<=
0
)
{
if
(
debug
>
0
)
System
.
err
.
println
(
"LdapClient: closed connection "
+
this
);
if
(!
pooled
)
{
// Not being pooled; continue with closing
conn
.
cleanup
(
reqCtls
,
false
);
conn
=
null
;
}
else
{
// Pooled
// Is this a real close or a request to return conn to pool
if
(
hardClose
)
{
conn
.
cleanup
(
reqCtls
,
false
);
conn
=
null
;
pcb
.
removePooledConnection
(
this
);
}
else
{
pcb
.
releasePooledConnection
(
this
);
...
...
@@ -462,15 +460,11 @@ public final class LdapClient implements PooledConnection {
System
.
err
.
println
(
"LdapClient: forceClose() of "
+
this
);
}
if
(
conn
!=
null
)
{
if
(
debug
>
0
)
System
.
err
.
println
(
"LdapClient: forced close of connection "
+
this
);
conn
.
cleanup
(
null
,
false
);
conn
=
null
;
if
(
cleanPool
)
{
pcb
.
removePooledConnection
(
this
);
}
if
(
debug
>
0
)
System
.
err
.
println
(
"LdapClient: forced close of connection "
+
this
);
conn
.
cleanup
(
null
,
false
);
if
(
cleanPool
)
{
pcb
.
removePooledConnection
(
this
);
}
}
...
...
@@ -567,7 +561,7 @@ public final class LdapClient implements PooledConnection {
* Abandon the search operation and remove it from the message queue.
*/
void
clearSearchReply
(
LdapResult
res
,
Control
[]
ctls
)
{
if
(
res
!=
null
&&
conn
!=
null
)
{
if
(
res
!=
null
)
{
// Only send an LDAP abandon operation when clearing the search
// reply from a one-level or subtree search.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录