comparison src/org/eclipse/jetty/server/Connector.java @ 897:821e4634b787

remove _reuseAddress
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 06 Oct 2016 23:52:53 -0600
parents d002da24b510
children 39c12b2306a2
comparison
equal deleted inserted replaced
896:d002da24b510 897:821e4634b787
63 private String _host; 63 private String _host;
64 public final int port; 64 public final int port;
65 private int _acceptors = 1; 65 private int _acceptors = 1;
66 private int _acceptorPriorityOffset = 0; 66 private int _acceptorPriorityOffset = 0;
67 private boolean _useDNS; 67 private boolean _useDNS;
68
69 private boolean _reuseAddress = true;
70 68
71 protected int _maxIdleTime = 200000; 69 protected int _maxIdleTime = 200000;
72 protected int _lowResourceMaxIdleTime = -1; 70 protected int _lowResourceMaxIdleTime = -1;
73 protected int _soLingerTime = -1; 71 protected int _soLingerTime = -1;
74 72
578 { 576 {
579 _acceptorPriorityOffset = offset; 577 _acceptorPriorityOffset = offset;
580 } 578 }
581 579
582 /* ------------------------------------------------------------ */ 580 /* ------------------------------------------------------------ */
583 /**
584 * @return True if the the server socket will be opened in SO_REUSEADDR mode.
585 */
586 public boolean getReuseAddress()
587 {
588 return _reuseAddress;
589 }
590
591 /* ------------------------------------------------------------ */
592 /**
593 * @param reuseAddress
594 * True if the the server socket will be opened in SO_REUSEADDR mode.
595 */
596 public void setReuseAddress(boolean reuseAddress)
597 {
598 _reuseAddress = reuseAddress;
599 }
600
601 /* ------------------------------------------------------------ */
602 public final boolean isLowResources() 581 public final boolean isLowResources()
603 { 582 {
604 return server.isLowOnThreads(); 583 return server.isLowOnThreads();
605 } 584 }
606 585