goelrajat commented on a change in pull request #143: KNOX-1997: Adding changes 
to buffer messages from backend in onMessag…
URL: https://github.com/apache/knox/pull/143#discussion_r322177992
 
 

 ##########
 File path: 
gateway-server/src/main/java/org/apache/knox/gateway/websockets/ProxyWebSocketAdapter.java
 ##########
 @@ -104,9 +114,33 @@ public void onWebSocketConnect(final Session 
frontEndSession) {
       throw new RuntimeIOException(e);
     }
 
+    remoteLock.lock();
     super.onWebSocketConnect(frontEndSession);
     this.frontendSession = frontEndSession;
 
+    final RemoteEndpoint remote = frontEndSession.getRemote();
+    try {
+      if (!messageBuffer.isEmpty()) {
+        LOG.logMessage("Found old buffered messages");
 
 Review comment:
   Fixed. Using a new function 'debugLog' for logging.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to