Branch: Tag:

2010-12-08

2010-12-08 14:19:48 by Martin Stjernholm <mast@lysator.liu.se>

Amended the previous commit.

disconnect() must be called from the backend thread, and don't let an
error in it clobber the internal server error logging.

Rev: server/protocols/http.pike:1.635

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2009, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.634 2010/12/03 21:30:51 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.635 2010/12/08 14:19:48 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
3048:    send_result();       }) { -  disconnect(); +  call_out (disconnect, 0);    report_error("Internal server error: " + describe_backtrace(err));    }   }
3595:    roxen.handle(handle_request);    })    { -  disconnect(); +     report_error("Internal server error: " + describe_backtrace(err)); -  +  disconnect();    }   }