You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by je...@apache.org on 2004/09/29 08:59:48 UTC

cvs commit: httpd-test/perl-framework/c-modules/nntp_like mod_nntp_like.c

jerenkrantz    2004/09/28 23:59:48

  Modified:    perl-framework/c-modules/nntp_like mod_nntp_like.c
  Log:
  * c-modules/nntp_like/mod_nntp_like.c: Only set the timeout if we're enabled.
  
  Revision  Changes    Path
  1.8       +8 -1      httpd-test/perl-framework/c-modules/nntp_like/mod_nntp_like.c
  
  Index: mod_nntp_like.c
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/c-modules/nntp_like/mod_nntp_like.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -u -r1.7 -r1.8
  --- mod_nntp_like.c	29 Sep 2004 06:53:42 -0000	1.7
  +++ mod_nntp_like.c	29 Sep 2004 06:59:48 -0000	1.8
  @@ -101,7 +101,14 @@
   
   static int nntp_like_pre_connection(conn_rec *c, void *csd)
   {
  -    apr_socket_timeout_set(csd, c->base_server->keep_alive_timeout);
  +    nntp_like_srv_cfg_t *cfg =
  +        ap_get_module_config(c->base_server->module_config,
  +                             &nntp_like_module);
  +
  +    if (cfg->enabled) {
  +        apr_socket_timeout_set(csd, c->base_server->keep_alive_timeout);
  +    }
  +
       return DECLINED;
   }