Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-05
2001-09-05 17:54:30 by Marcus Comstedt <marcus@mc.pp.se>
0efa778eabbf01cc68a4ad9fdf50d1c3d3d08b98 (
8
lines) (+
7
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Apply module reloc to backtraces.
Rev: server/protocols/http.pike:1.336
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2001, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
335
2001/
08
/
31
17:
07
:
48
grubba
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
336
2001/
09
/
05
17:
54
:
30
marcus
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
1109:
res += "<h3>Pike backtrace</h3>\n<ul>\n"; int q = sizeof (bt); foreach(bt, [string file, int line, string func, string descr])
+
{
+
#if constant(PIKE_MODULE_RELOC)
+
file = file && master()->relocate_module(file);
+
#endif
res += "<li value="+(q--)+">" + link_to (file, line, func, eid, q) + (file ? Roxen.html_encode_string (file) : "<i>Unknown program</i>") +
1117:
replace (Roxen.html_encode_string (descr), ({"(", ")", " "}), ({"<b>(</b>", "<b>)</b>", " "})) + "</li>\n";
+
}
res += "</ul>\n\n"; }