httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Disconnect problem solved?
Date Tue, 07 May 1996 22:00:26 GMT
Try this patch (completely untested, I'm afraid) ... take out the extra close,
of course:

diff -c -r1.2 buff.c
*** buff.c      1996/03/01 02:34:32     1.2
--- buff.c      1996/05/07 22:35:26
***************
*** 105,110 ****
--- 105,111 ----
      BUFF *fb;

      fb = palloc(p, sizeof(BUFF));
+     fb->pool=p;
      fb->bufsiz = DEFAULT_BUFSIZE;
      fb->flags = flags & B_RDWR;

***************
*** 135,140 ****
--- 136,144 ----
  {
      fb->fd = fd_out;
      fb->fd_in = fd_in;
+     note_cleanups_for_fd(fb->pool,fb->fd);
+     if(fb->fd != fb->fd_in)
+       note_cleanups_for_fd(fb->pool,fb->fd_in);
  }

  int
Index: buff.h
===================================================================
RCS file: /export/home/cvs/apache/src/buff.h,v
retrieving revision 1.2
diff -c -r1.2 buff.h
*** buff.h      1996/03/01 02:34:32     1.2
--- buff.h      1996/05/07 22:35:30
***************
*** 80,85 ****
--- 80,88 ----
      void (*error)(BUFF *fb, int op, void *data);
      void *error_data;
      long int bytes_sent;   /* number of bytes actually written */
+
+     pool *pool;
+
  /* could also put pointers to the basic I/O routines here */
      int fd;                /* the file descriptor */
      int fd_in;             /* input file descriptor, if different */

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message