336691 fixed SSL close
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2769 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
788defff3e
commit
19c5b378c2
|
@ -149,7 +149,7 @@ public class ChannelEndPoint implements EndPoint
|
||||||
bbuf.position(buffer.putIndex());
|
bbuf.position(buffer.putIndex());
|
||||||
len=_channel.read(bbuf);
|
len=_channel.read(bbuf);
|
||||||
if (len<0)
|
if (len<0)
|
||||||
close();
|
_channel.close(); // Don't call this.close() as that may recurse in SSL land and call fill again
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,6 +40,8 @@ public class ConnectHandlerConnectSSLTest extends AbstractProxyHandlerTest
|
||||||
SslSelectChannelConnector connector = new SslSelectChannelConnector();
|
SslSelectChannelConnector connector = new SslSelectChannelConnector();
|
||||||
|
|
||||||
String keyStorePath = System.getProperty("basedir");
|
String keyStorePath = System.getProperty("basedir");
|
||||||
|
if (keyStorePath==null)
|
||||||
|
keyStorePath=".";
|
||||||
keyStorePath += File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "keystore";
|
keyStorePath += File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "keystore";
|
||||||
connector.setKeystore(keyStorePath);
|
connector.setKeystore(keyStorePath);
|
||||||
connector.setPassword("storepwd");
|
connector.setPassword("storepwd");
|
||||||
|
|
Loading…
Reference in New Issue