comparison 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
comparison
equal deleted inserted replaced
913:17f4fe8271de 914:54308d65265a
179 LOG.warn("insufficient threads configured for {}",this); 179 LOG.warn("insufficient threads configured for {}",this);
180 180
181 LOG.info("Started {}",this); 181 LOG.info("Started {}",this);
182 } 182 }
183 183
184 /* ------------------------------------------------------------ */
185 @Override 184 @Override
186 protected synchronized void doStop() throws Exception 185 protected synchronized void doStop() throws Exception
187 { 186 {
188 try 187 try
189 { 188 {
198 197
199 super.doStop(); 198 super.doStop();
200 } 199 }
201 200
202 201
203 /* ------------------------------------------------------------ */ 202 protected final void configure(Socket socket) throws IOException
204 protected void configure(Socket socket) throws IOException 203 {
205 { 204 socket.setTcpNoDelay(true);
206 try 205 if (_soLingerTime >= 0)
207 { 206 socket.setSoLinger(true,_soLingerTime / 1000);
208 socket.setTcpNoDelay(true); 207 else
209 if (_soLingerTime >= 0) 208 socket.setSoLinger(false,0);
210 socket.setSoLinger(true,_soLingerTime / 1000);
211 else
212 socket.setSoLinger(false,0);
213 }
214 catch (Exception e)
215 {
216 LOG.trace("",e);
217 }
218 } 209 }
219 210
220 public void customize(EndPoint endpoint, Request request) throws IOException 211 public void customize(EndPoint endpoint, Request request) throws IOException
221 { 212 {
222 } 213 }