Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/nio/SelectChannelConnector.java @ 888:1aa58272794f
remove _acceptQueueSize
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 06 Oct 2016 23:12:00 -0600 |
| parents | df84a1741687 |
| children | 821e4634b787 |
comparison
equal
deleted
inserted
replaced
| 887:df84a1741687 | 888:1aa58272794f |
|---|---|
| 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(getReuseAddress()); |
| 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,getAcceptQueueSize()); | 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) |
| 183 throw new IOException("Server channel not bound"); | 183 throw new IOException("Server channel not bound"); |
| 184 | 184 |
