summaryrefslogtreecommitdiff
path: root/src/connection.h
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-11-08 16:09:33 +0200
committerGitHub <noreply@github.com>2021-11-08 16:09:33 +0200
commita1aba4bf754fc6c650d37447b689ac4dea6baebf (patch)
treec8a0275327b1c59ae7b0a1d6bfe607e0cc06e249 /src/connection.h
parent48d870aed1a5c392f3c1b59db48bc15f9f43b963 (diff)
downloadredis-a1aba4bf754fc6c650d37447b689ac4dea6baebf.tar.gz
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).
Diffstat (limited to 'src/connection.h')
-rw-r--r--src/connection.h3
1 files changed, 0 insertions, 3 deletions
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;
}