From 0a97638a04ed4a9771eafed5f3612c26d2683eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borys=20Pop=C5=82awski?= Date: Thu, 30 Jun 2022 14:08:55 +0200 Subject: [PATCH] [PAL/Linux-SGX] Add `ECONNRESET` to errors allowed from `ocall_recv` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Borys Popławski --- pal/src/host/linux-sgx/enclave_ocalls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pal/src/host/linux-sgx/enclave_ocalls.c b/pal/src/host/linux-sgx/enclave_ocalls.c index 27ae7ad07f..8f5384a82b 100644 --- a/pal/src/host/linux-sgx/enclave_ocalls.c +++ b/pal/src/host/linux-sgx/enclave_ocalls.c @@ -1448,8 +1448,9 @@ ssize_t ocall_recv(int sockfd, struct iovec* iov, size_t iov_len, void* addr, si if (retval < 0) { if (retval != -EAGAIN && retval != -EWOULDBLOCK && retval != -EBADF - && retval != -ECONNREFUSED && retval != -EINTR && retval != -EINVAL - && retval != -ENOMEM && retval != -ENOTCONN && retval != -ENOTSOCK) { + && retval != -ECONNREFUSED && retval != -ECONNRESET && retval != -EINTR + && retval != -EINVAL && retval != -ENOMEM && retval != -ENOTCONN + && retval != -ENOTSOCK) { retval = -EPERM; } goto out;