Also fix @Override warnings for the method
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@992881
13f79535-47bb-0310-9956-
ffa450edef68
* The background thread that listens for incoming TCP/IP connections and
* hands them off to an appropriate processor.
*/
+ @Override
public void run() {
// Loop until we receive a shutdown command
* The background thread that listens for incoming TCP/IP connections and
* hands them off to an appropriate processor.
*/
+ @Override
public void run() {
// Loop until we receive a shutdown command
while (running) {
// Loop if endpoint is paused
- while (paused) {
+ while (paused && running) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
* The background thread that listens for incoming TCP/IP connections and
* hands them off to an appropriate processor.
*/
+ @Override
public void run() {
// Loop until we receive a shutdown command
while (running) {
// Loop if endpoint is paused
- while (paused) {
+ while (paused && running) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
Further work to reduce the code duplication in the HTTP connectors.
(markt)
</update>
+ <fix>
+ Make sure acceptor threads are stopped when the connector is stopped.
+ (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">