Browse Source

fix a aesm_service IPC bug

aesm_service handles closed client socket incorrectly found in #101

Signed-off-by: Li, Xun <xun.li@intel.com>
Li, Xun 7 years ago
parent
commit
02b7d490ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psw/ae/common/src/NonBlockingUnixCommunicationSocket.cpp

+ 1 - 1
psw/ae/common/src/NonBlockingUnixCommunicationSocket.cpp

@@ -171,7 +171,7 @@ char* NonBlockingUnixCommunicationSocket::readRaw(ssize_t length)
                 if (mEvents[i].events & EPOLLHUP) 
                 {
                     peerSocketClosed = true;
-                    continue;    
+                    //peer closed socket. one more reading all remaining data.
                 }
                 if ((mEvents[i].events & EPOLLERR) ||
                     (!(mEvents[i].events & EPOLLIN)))