提交 d10fa2b3 编写于 作者: R robm

8223727: com/sun/jndi/ldap/privconn/RunTest.java failed due to hang in LdapRequest.getReplyBer

Reviewed-by: prappo
上级 8f71b7b8
......@@ -411,6 +411,14 @@ public final class Connection implements Runnable {
BerDecoder readReply(LdapRequest ldr) throws IOException, NamingException {
BerDecoder rber;
// If socket closed, don't even try
synchronized (this) {
if (sock == null) {
throw new ServiceUnavailableException(host + ":" + port +
"; socket closed");
}
}
try {
// if no timeout is set so we wait infinitely until
// a response is received
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册