Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/nio/SelectChannelConnector.java @ 897:821e4634b787
remove _reuseAddress
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 06 Oct 2016 23:52:53 -0600 |
parents | 1aa58272794f |
children | d9a12a7339a6 |
comparison
equal
deleted
inserted
replaced
896:d002da24b510 | 897:821e4634b787 |
---|---|
172 _acceptChannel = ServerSocketChannel.open(); | 172 _acceptChannel = ServerSocketChannel.open(); |
173 // Set to blocking mode | 173 // Set to blocking mode |
174 _acceptChannel.configureBlocking(true); | 174 _acceptChannel.configureBlocking(true); |
175 | 175 |
176 // Bind the server socket to the local host and port | 176 // Bind the server socket to the local host and port |
177 _acceptChannel.socket().setReuseAddress(getReuseAddress()); | 177 _acceptChannel.socket().setReuseAddress(true); |
178 InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port); | 178 InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port); |
179 _acceptChannel.socket().bind(addr,0); | 179 _acceptChannel.socket().bind(addr,0); |
180 | 180 |
181 _localPort=_acceptChannel.socket().getLocalPort(); | 181 _localPort=_acceptChannel.socket().getLocalPort(); |
182 if (_localPort<=0) | 182 if (_localPort<=0) |