TLS requires we explicitly marshal connected sockets when using them on a different thread

Former-commit-id: 341a8caef959883ca6fc71f81f8a3fed747b2341
This commit is contained in:
John Sully 2020-05-30 01:14:53 -04:00
parent ed77c35b15
commit f37ee5bd4d
2 changed files with 2 additions and 0 deletions

View File

@ -5272,6 +5272,7 @@ try_again:
zfree(ov); zfree(kv);
return; /* error sent to the client by migrateGetSocket() */
}
connMarshalThread(cs->conn);
rioInitWithBuffer(&cmd,sdsempty());

View File

@ -349,6 +349,7 @@ connection *connCreateTLS(void) {
void connTLSMarshalThread(connection *c) {
tls_connection *conn = (tls_connection*)c;
serverAssert(conn->pending_list_node == nullptr);
conn->el = serverTL->el;
}