comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 996:d9cfec64899c

simplify Connector
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 18 Oct 2016 21:22:53 -0600
parents 688c39c50ee3
children 74b9daf2826c
comparison
equal deleted inserted replaced
995:0eba8f555c19 996:d9cfec64899c
437 return _expect102Processing; 437 return _expect102Processing;
438 } 438 }
439 439
440 public final int getMaxIdleTime() 440 public final int getMaxIdleTime()
441 { 441 {
442 if (_connector.isLowResources() && _endp.getMaxIdleTime()==_connector.getMaxIdleTime()) 442 if (_connector.server.isLowOnThreads() && _endp.getMaxIdleTime()==_connector.getMaxIdleTime())
443 return 0; 443 return 0;
444 if (_endp.getMaxIdleTime()>0) 444 if (_endp.getMaxIdleTime()>0)
445 return _endp.getMaxIdleTime(); 445 return _endp.getMaxIdleTime();
446 return _connector.getMaxIdleTime(); 446 return _connector.getMaxIdleTime();
447 } 447 }