This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 6c2e869 Don't force socket close if bind is on init rather than start 6c2e869 is described below commit 6c2e869677ad3b0b9563dae05fc039655501f2c2 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Aug 13 19:30:32 2020 +0100 Don't force socket close if bind is on init rather than start --- java/org/apache/tomcat/util/net/AprEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java b/java/org/apache/tomcat/util/net/AprEndpoint.java index 57e6d5f..004f7a7 100644 --- a/java/org/apache/tomcat/util/net/AprEndpoint.java +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java @@ -491,7 +491,7 @@ public class AprEndpoint extends AbstractEndpoint<Long,Long> implements SNICallB for (SocketWrapperBase<Long> socketWrapper : connections.values()) { socketWrapper.close(); } - if (acceptor.getState() != AcceptorState.ENDED) { + if (acceptor.getState() != AcceptorState.ENDED && !getBindOnInit()) { log.warn(sm.getString("endpoint.warn.unlockAcceptorFailed", acceptor.getThreadName())); // If the Acceptor is still running force // the hard socket close. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org