Branch: Tag:

2007-02-26

2007-02-26 13:02:47 by Martin Stjernholm <mast@lysator.liu.se>

Fixed memory garbage that occurred for the redirect from http to https when
an https port is accessed using http. Could also fix other cases where
references to destructed RequestID objects were kept. Might fix RT ticket
[roxen.com #8894].

Rev: server/protocols/http.pike:1.516
Rev: server/protocols/prot_https.pike:2.14

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.515 2006/12/14 10:48:26 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.516 2007/02/26 13:02:46 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1424:      static object(this_program) chained_to;    - // Paranoia. +    static void destroy()   { -  +  // To avoid references to destructed RequestID objects. Happens +  // otherwise when prot_https makes a http -> https redirect, for +  // instance. +  remove_call_out (do_timeout); +     if (chained_to) {    // This happens when do_log() is called before the request    // has been chained (eg for short data over fast connections).