Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/Connector.java @ 914:54308d65265a
simplify SelectorManager
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 09 Oct 2016 01:22:55 -0600 |
parents | 17f4fe8271de |
children | f5aefdc4a81a |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Connector.java Sat Oct 08 23:57:11 2016 -0600 +++ b/src/org/eclipse/jetty/server/Connector.java Sun Oct 09 01:22:55 2016 -0600 @@ -181,7 +181,6 @@ LOG.info("Started {}",this); } - /* ------------------------------------------------------------ */ @Override protected synchronized void doStop() throws Exception { @@ -200,21 +199,13 @@ } - /* ------------------------------------------------------------ */ - protected void configure(Socket socket) throws IOException + protected final void configure(Socket socket) throws IOException { - try - { - socket.setTcpNoDelay(true); - if (_soLingerTime >= 0) - socket.setSoLinger(true,_soLingerTime / 1000); - else - socket.setSoLinger(false,0); - } - catch (Exception e) - { - LOG.trace("",e); - } + socket.setTcpNoDelay(true); + if (_soLingerTime >= 0) + socket.setSoLinger(true,_soLingerTime / 1000); + else + socket.setSoLinger(false,0); } public void customize(EndPoint endpoint, Request request) throws IOException