From a1aba4bf754fc6c650d37447b689ac4dea6baebf Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Mon, 8 Nov 2021 16:09:33 +0200 Subject: Fix EINTR test failures. (#9751) * Clean up EINTR handling so EINTR will not change connection state to begin with. * On TLS, catch EINTR and return it as-is before going through OpenSSL error handling (which seems to not distinguish it from EAGAIN). --- src/connection.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/connection.h') diff --git a/src/connection.h b/src/connection.h index f30a96367..07c1d4dd8 100644 --- a/src/connection.h +++ b/src/connection.h @@ -152,9 +152,6 @@ static inline int connWrite(connection *conn, const void *data, size_t data_len) */ static inline int connRead(connection *conn, void *buf, size_t buf_len) { int ret = conn->type->read(conn, buf, buf_len); - if (ret == -1 && conn->last_errno == EINTR) { - conn->state = CONN_STATE_CONNECTED; - } return ret; } -- cgit v1.2.1