diff --git a/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketAsyncRemote.java b/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketAsyncRemote.java index ead0381f156..6aa04e80e4c 100644 --- a/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketAsyncRemote.java +++ b/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketAsyncRemote.java @@ -50,13 +50,13 @@ public class JavaxWebSocketAsyncRemote extends JavaxWebSocketRemoteEndpoint impl @Override public long getSendTimeout() { - return getWriteIdleTimeout(); + return getWriteTimeout(); } @Override public void setSendTimeout(long timeoutmillis) { - setWriteIdleTimeout(timeoutmillis); + setWriteTimeout(timeoutmillis); } @Override diff --git a/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketRemoteEndpoint.java b/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketRemoteEndpoint.java index 30fc2c71df2..88489c78c2e 100644 --- a/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketRemoteEndpoint.java +++ b/jetty-websocket/javax-websocket-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketRemoteEndpoint.java @@ -97,12 +97,12 @@ public class JavaxWebSocketRemoteEndpoint implements javax.websocket.RemoteEndpo coreSession.setIdleTimeout(Duration.ofMillis(ms)); } - public long getWriteIdleTimeout() + public long getWriteTimeout() { return coreSession.getWriteTimeout().toMillis(); } - public void setWriteIdleTimeout(long ms) + public void setWriteTimeout(long ms) { coreSession.setWriteTimeout(Duration.ofMillis(ms)); }