View | Details | Raw Unified | Return to bug 280862
Collapse All | Expand All

(-)b/net/libnss-mysql/Makefile (-1 / +1 lines)
Lines 1-6 Link Here
1
PORTNAME=	libnss-mysql
1
PORTNAME=	libnss-mysql
2
PORTVERSION=	1.5
2
PORTVERSION=	1.5
3
PORTREVISION=	5
3
PORTREVISION=	6
4
CATEGORIES=	net
4
CATEGORIES=	net
5
MASTER_SITES=	SF
5
MASTER_SITES=	SF
6
6
(-)a/net/libnss-mysql/files/patch-src_mysql.c (-22 lines)
Removed Link Here
1
--- src/mysql.c.orig	2005-09-04 03:34:02 UTC
2
+++ src/mysql.c
3
@@ -196,6 +196,7 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult)
4
   int retval;
5
   sql_server_t *server = &conf.sql.server;
6
   unsigned int port;
7
+  my_bool reconnect = 1;
8
 
9
   DENTER
10
 
11
@@ -238,8 +239,9 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult)
12
           DSRETURN (NSS_UNAVAIL)
13
         }
14
       ci.valid = ntrue;
15
-      ci.link.reconnect = 0; /* Safety: We can't let MySQL assume socket is
16
-                                still valid; see _nss_mysql_validate_socket */
17
+      /* Safety: We can't let MySQL assume socket is still valid;
18
+         see _nss_mysql_validate_socket */
19
+      mysql_options(&ci.link, MYSQL_OPT_RECONNECT, &reconnect); 
20
       DSRETURN (NSS_SUCCESS)
21
     }
22
   _nss_mysql_log (LOG_ALERT, "Connection to server '%s' failed: %s",

Return to bug 280862