httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <Dirk.vanGu...@jrc.it>
Subject mod_auth_msql.c
Date Wed, 10 Apr 1996 08:59:44 GMT

sorry, hit the send button to early, here is a diff to move
mod_auth_msql.c 0.5 into 0.6 with grp/gid bug fixed

As a minor issue. We have now a module which keeps open the
connection with the msql database between calls. This has the
following (dis)advantages

- seriously faster when on different machines
- a wee bit faster when msqld lives on the same box

- *each* child has a connection, so msqld runs out of
  connected clients early. (The compiled in max is low)
- costs a lot of file/socket descriptors
- troublesome closes when a child or msqld dies in mid-live
  with a lot of open crap somethines left behind (on solaris,
  NetBSD is less troublesome)

After extensive trials we decided that it aint worth it.

Any one cares to comment ? Should I make this an option ?

Dw.


----

diff -c3 mod_auth_msql.c /httpd/src/mod_auth_msql.c
*** mod_auth_msql.c     Fri Mar  1 15:20:32 1996
--- /httpd/src/mod_auth_msql.c  Sun Mar 17 21:19:35 1996
***************
*** 115,120 ****
--- 115,123 ----
   *              no good at all !
   *       0.3  Added 'Auth_MSQL_nopasswd' option
   *       0.4  Cleaned out the error messages mess.
+  *       0.6  Inconsistency with gid/grp in comment/token/source
+  *            Make sure you really use 'Auth_MSQLgrp_field' as
+  *            indicated above.
   */
  
  #include "httpd.h"
***************
*** 184,191 ****
      (void*)XtOffsetOf(msql_auth_config_rec, auth_msql_uname_field),
      OR_AUTHCFG, TAKE1, "The UserID field name must be set to something" },
  
! { "Auth_MSQLgid_field", msql_set_string_slot,
!     (void*)XtOffsetOf(msql_auth_config_rec, auth_msql_nopasswd),
      OR_AUTHCFG, TAKE1, 
        "GID field name must be set to something if you want to use groups" },
  
--- 187,194 ----
      (void*)XtOffsetOf(msql_auth_config_rec, auth_msql_uname_field),
      OR_AUTHCFG, TAKE1, "The UserID field name must be set to something" },
  
! { "Auth_MSQLgrp_field", msql_set_string_slot,
!     (void*)XtOffsetOf(msql_auth_config_rec, auth_msql_grp_field),
      OR_AUTHCFG, TAKE1, 
        "GID field name must be set to something if you want to use groups" },
  
***************
*** 219,225 ****
  
        /* force fast access over /dev/msql */
        if ((host) && (!(strcasecmp(host,"localhost"))))
!               *host='\0';
  
        if ((sock=msqlConnect(host)) == -1) {
                sprintf (msql_errstr,
--- 222,228 ----
  
        /* force fast access over /dev/msql */
        if ((host) && (!(strcasecmp(host,"localhost"))))
!               *host=NULL;
  
        if ((sock=msqlConnect(host)) == -1) {
                sprintf (msql_errstr,

Mime
View raw message