فهرست منبع

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);