浏览代码

Bug 497556 - LDAPI connections cause TCP performance degradation

If a slot from the connection table had previously been used for
an LDAPI connection, it would cause serious performance degradation
(20 times worse on my system) to a TCP connection that reused the
same slot.  The problem was that we were not clearing the flag
that indicates that a connection is a UNIX local socket in the
connection cleanup function.  Clearing this flag makes the reused
slots perform as expected.
Nathan Kinder 16 年之前
父节点
当前提交
99ac483608
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ldap/servers/slapd/connection.c

+ 1 - 0
ldap/servers/slapd/connection.c

@@ -196,6 +196,7 @@ connection_cleanup(Connection *conn)
 	conn->c_prev= NULL;
 	conn->c_extension= NULL;
 	conn->c_ssl_ssf = 0; 
+	conn->c_unix_local = 0;
 	/* remove any SASL I/O from the connection */
 	sasl_io_cleanup(conn);
 	sasl_dispose((sasl_conn_t**)&conn->c_sasl_conn);