This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new e0b8faba50 Simplify the logic
e0b8faba50 is described below
commit e0b8faba50b7e6192a271c7110442cc6cd9934b9
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jul 27 11:42:57 2023 +0100
Simplify the logic
---
.../org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
b/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
index bf54fe31c8..67ef75204c 100644
--- a/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
+++ b/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
@@ -115,8 +115,7 @@ public class WsRemoteEndpointImplServer extends
WsRemoteEndpointImplBase {
socketWrapperLockCount = 1;
}
while (!messagePartInProgress.tryAcquire()) {
- long timeout = timeoutExpiry - System.currentTimeMillis();
- if (timeout < 0) {
+ if (timeoutExpiry < System.currentTimeMillis()) {
return false;
}
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]