From 117d4ba0901c6d4be5bfbadb97510701395975a2 Mon Sep 17 00:00:00 2001 From: Thierry Bordaz Date: Apr 15 2019 09:52:27 +0000 Subject: Ticket 50306 - (cont typo) Move connection config inside struct Bug Description: typo where ioblocktimeout was erronously computed from maxbersize Fix Description: move c_maxbersize to c_ioblocktimeout https://pagure.io/389-ds-base/issue/50306 Reviewed by: Thierry Bordaz Platforms tested: F28 Flag Day: no Doc impact: no --- diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c index 3a7620b..8a17df7 100644 --- a/ldap/servers/slapd/connection.c +++ b/ldap/servers/slapd/connection.c @@ -1175,7 +1175,7 @@ connection_read_operation(Connection *conn, Operation *op, ber_tag_t *tag, int * } /* If we still haven't seen a complete PDU, read from the network */ while (*tag == LBER_DEFAULT) { - int32_t ioblocktimeout_waits = conn->c_maxbersize / CONN_TURBO_TIMEOUT_INTERVAL; + int32_t ioblocktimeout_waits = conn->c_ioblocktimeout / CONN_TURBO_TIMEOUT_INTERVAL; /* We should never get here with data remaining in the buffer */ PR_ASSERT(!new_operation || !conn_buffered_data_avail_nolock(conn, &conn_closed)); /* We make a non-blocking read call */