Branch: Tag:

2011-02-15

2011-02-15 13:51:39 by Martin Jonsson <marty@roxen.com>

Avoid backtrace if the connection has been closed when the delayed configuration init is done. Fixes [Bug 4832 (#4832)].

Rev: server/base_server/roxen.pike:1.1078

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1077 2011/01/20 14:01:02 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1078 2011/02/15 13:51:39 marty Exp $";      //! @appears roxen   //!
1908:    if(!(c=mu->conf)->inited ) {    handle (lambda () {    c->enable_all_modules(); -  call_out (requesthandler, 0, q, this, c); +  call_out (lambda () +  { +  // The connection might have been +  // closed already, e.g. by +  // http_fallback.ssl_alert_callback() +  // (prot_https.pike). Avoid a +  // backtrace in that case. +  if (q->is_open()) +  requesthandler (q, this, c); +  }, 0);    });    return;    }