浏览代码

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 年之前
父节点
当前提交
02b7d490ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)))