fix TLS test failure
Former-commit-id: 57ca6facc3038e005656912b6378cb7fbe04f55a
This commit is contained in:
parent
d9164a07b5
commit
71fbeb65b6
@ -2197,7 +2197,9 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
|
||||
handleBlockedClientsTimeout();
|
||||
|
||||
/* Handle TLS pending data. (must be done before flushAppendOnlyFile) */
|
||||
aeReleaseLock();
|
||||
tlsProcessPendingData();
|
||||
aeAcquireLock();
|
||||
|
||||
/* If tls still has pending unread data don't sleep at all. */
|
||||
aeSetDontWait(eventLoop, tlsHasPendingData());
|
||||
|
@ -458,7 +458,6 @@ void updateSSLEvent(tls_connection *conn) {
|
||||
|
||||
void tlsHandleEvent(tls_connection *conn, int mask) {
|
||||
int ret;
|
||||
serverAssert(!GlobalLocksAcquired());
|
||||
serverAssert(conn->el == serverTL->el);
|
||||
|
||||
TLSCONN_DEBUG("tlsEventHandler(): fd=%d, state=%d, mask=%d, r=%d, w=%d, flags=%d",
|
||||
@ -910,6 +909,7 @@ int tlsHasPendingData() {
|
||||
int tlsProcessPendingData() {
|
||||
listIter li;
|
||||
listNode *ln;
|
||||
serverAssert(!GlobalLocksAcquired());
|
||||
|
||||
int processed = listLength(pending_list);
|
||||
listRewind(pending_list,&li);
|
||||
|
Loading…
x
Reference in New Issue
Block a user