Removed class SocketBased, not necessary.
This commit is contained in:
parent
114a95234b
commit
8bd6ab0beb
|
@ -35,7 +35,7 @@ import org.eclipse.jetty.util.thread.Scheduler;
|
|||
* Channel End Point.
|
||||
* <p>Holds the channel and socket for an NIO endpoint.
|
||||
*/
|
||||
public class ChannelEndPoint extends AbstractEndPoint implements SocketBased
|
||||
public class ChannelEndPoint extends AbstractEndPoint
|
||||
{
|
||||
private static final Logger LOG = Log.getLogger(ChannelEndPoint.class);
|
||||
|
||||
|
@ -208,7 +208,6 @@ public class ChannelEndPoint extends AbstractEndPoint implements SocketBased
|
|||
return _channel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Socket getSocket()
|
||||
{
|
||||
return _socket;
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// ========================================================================
|
||||
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
|
||||
// ------------------------------------------------------------------------
|
||||
// All rights reserved. This program and the accompanying materials
|
||||
// are made available under the terms of the Eclipse Public License v1.0
|
||||
// and Apache License v2.0 which accompanies this distribution.
|
||||
//
|
||||
// The Eclipse Public License is available at
|
||||
// http://www.eclipse.org/legal/epl-v10.html
|
||||
//
|
||||
// The Apache License v2.0 is available at
|
||||
// http://www.opensource.org/licenses/apache2.0.php
|
||||
//
|
||||
// You may elect to redistribute this code under either of these licenses.
|
||||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.io;
|
||||
|
||||
import java.net.Socket;
|
||||
|
||||
/**
|
||||
* Interface for Socket based I/O
|
||||
*/
|
||||
public interface SocketBased
|
||||
{
|
||||
public Socket getSocket();
|
||||
}
|
|
@ -107,21 +107,6 @@ public class SslConnection extends AbstractConnection
|
|||
this._bufferPool = byteBufferPool;
|
||||
this._sslEngine = sslEngine;
|
||||
this._decryptedEndPoint = newDecryptedEndPoint();
|
||||
|
||||
// commented out for now as it might cause native code being stuck in preClose0.
|
||||
// See: https://java.net/jira/browse/GRIZZLY-547
|
||||
|
||||
// if (endPoint instanceof SocketBased)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// ((SocketBased)endPoint).getSocket().setSoLinger(true, 30000);
|
||||
// }
|
||||
// catch (SocketException e)
|
||||
// {
|
||||
// throw new RuntimeIOException(e);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
protected DecryptedEndPoint newDecryptedEndPoint()
|
||||
|
|
Loading…
Reference in New Issue