comparison src/org/eclipse/jetty/server/nio/SelectChannelConnector.java @ 971:f997df37cec1

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 14 Oct 2016 13:06:06 -0600
parents d82eb99e8df6
children 5ee36654b383
comparison
equal deleted inserted replaced
970:d82eb99e8df6 971:f997df37cec1
98 98
99 // Bind the server socket to the local host and port 99 // Bind the server socket to the local host and port
100 _acceptChannel.socket().setReuseAddress(true); 100 _acceptChannel.socket().setReuseAddress(true);
101 InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port); 101 InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port);
102 _acceptChannel.bind(addr); 102 _acceptChannel.bind(addr);
103 if( _acceptChannel.socket().getLocalPort() != port) 103 if( _acceptChannel.socket().getLocalPort() != port )
104 throw new IOException("Server channel not bound"); 104 throw new IOException("Server channel not bound");
105 } 105 }
106 106
107 super.doStart(); 107 super.doStart();
108 } 108 }