diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2022-07-27 09:38:25 +0800 |
---|---|---|
committer | zhenwei pi <pizhenwei@bytedance.com> | 2022-08-22 15:01:16 +0800 |
commit | 8045e26efacd8b1b1f7467002070eaf440a1c2bb (patch) | |
tree | 7cd0ccda24641d5da75ec710d3f21471796c0f70 /src/tls.c | |
parent | dca5c6ff114b69213ee3c14530e0ed20169d86b0 (diff) | |
download | redis-8045e26efacd8b1b1f7467002070eaf440a1c2bb.tar.gz |
Move 'connGetSocketError' to 'anetGetError'
getsockopt is part of TCP, rename 'connGetSocketError' to
'anetGetError', and move it into anet.c.
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Diffstat (limited to 'src/tls.c')
-rw-r--r-- | src/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -595,7 +595,7 @@ static void tlsHandleEvent(tls_connection *conn, int mask) { switch (conn->c.state) { case CONN_STATE_CONNECTING: - conn_error = connGetSocketError((connection *) conn); + conn_error = anetGetError(conn->c.fd); if (conn_error) { conn->c.last_errno = conn_error; conn->c.state = CONN_STATE_ERROR; |