comparison src/org/eclipse/jetty/server/Server.java @ 867:4f5547d29192

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 02 Oct 2016 21:06:18 -0600
parents 6b210bb66c63
children b9aa175d9a29
comparison
equal deleted inserted replaced
866:f8c7b718f513 867:4f5547d29192
83 Connector connector=new SelectChannelConnector(); 83 Connector connector=new SelectChannelConnector();
84 connector.setPort(port); 84 connector.setPort(port);
85 setConnectors(new Connector[]{connector}); 85 setConnectors(new Connector[]{connector});
86 86
87 _threadPool = new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()); 87 _threadPool = new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
88 addBean(_threadPool);
89 } 88 }
90 89
91 90
92 /* ------------------------------------------------------------ */ 91 /* ------------------------------------------------------------ */
93 public static String getVersion() 92 public static String getVersion()
282 { 281 {
283 for (int i=_connectors.length;i-->0;) 282 for (int i=_connectors.length;i-->0;)
284 try{_connectors[i].stop();}catch(Throwable e){mex.add(e);} 283 try{_connectors[i].stop();}catch(Throwable e){mex.add(e);}
285 } 284 }
286 285
286 _threadPool.shutdownNow();
287
287 try {super.doStop(); } catch(Throwable e) { mex.add(e);} 288 try {super.doStop(); } catch(Throwable e) { mex.add(e);}
288 289
289 mex.ifExceptionThrow(); 290 mex.ifExceptionThrow();
290 291
291 if (getStopAtShutdown()) 292 if (getStopAtShutdown())