import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
-import java.util.ArrayList;
-import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.tomcat.jni.Error;
-import org.apache.tomcat.jni.Library;
-import org.apache.tomcat.jni.Poll;
import org.apache.tomcat.jni.SSL;
-import org.apache.tomcat.jni.Status;
import org.apache.tomcat.util.res.StringManager;
/**
// Initialize SSL
// FIXME: one per VM call ?
if ("on".equalsIgnoreCase(SSLEngine)) {
- SSL.initialize(null);
+ //SSL.initialize(null);
} else {
- SSL.initialize(SSLEngine);
+ //SSL.initialize(SSLEngine);
}
// SSL protocol
int value = SSL.SSL_PROTOCOL_ALL;
/**
- * Allocate a new poller of the specified size.
- */
- protected long allocatePoller(int size, long pool, int timeout) {
- try {
- return Poll.create(size, pool, 0, timeout * 1000);
- } catch (Error e) {
- if (Status.APR_STATUS_IS_EINVAL(e.getError())) {
- log.info(sm.getString("endpoint.poll.limitedpollsize", "" + size));
- return 0;
- } else {
- log.error(sm.getString("endpoint.poll.initfail"), e);
- return -1;
- }
- }
- }
-
-
- /**
* Process given socket.
*/
protected boolean processSocket(SocketChannel socket) {