* expect to be signal-ready to SIGALRM. There is no clean way to
* fix this, except to put alarm support into BUFF. -djg
*/
- ap_hard_timeout("send SSI", r);
-
#ifdef CHARSET_EBCDIC
/* XXX:@@@ Is the generated/included output ALWAYS in text/ebcdic format? */
ap_bsetflag(r->connection->client, B_EBCDIC2ASCII, 1);
NESTED_INCLUDE_MAGIC);
}
- ap_kill_timeout(r);
return OK;
}
p->ascending = (ap_toupper(direction) == D_ASCENDING);
if (autoindex_opts & FANCY_INDEXING) {
- request_rec *rr = ap_sub_req_lookup_file(name, r);
+ request_rec *rr = ap_sub_req_lookup_file(name, r);
if (rr->finfo.st_mode != 0) {
p->lm = rr->finfo.st_mtime;
ap_pclosedir(r->pool, d);
return 0;
}
- ap_hard_timeout("send directory", r);
/* Spew HTML preamble */
emit_tail(r, find_readme(autoindex_conf, r),
autoindex_opts & SUPPRESS_PREAMBLE);
- ap_kill_timeout(r);
return 0;
}
dbpos = 0;
}
- ap_hard_timeout("copy script args", r);
-
while ((len_read =
ap_get_client_block(r, argsbuffer, HUGE_STRING_LEN)) > 0) {
if (conf->logname) {
memcpy(dbuf + dbpos, argsbuffer, dbsize);
dbpos += dbsize;
}
- ap_reset_timeout(r);
if (ap_bwrite(script_out, argsbuffer, len_read) < len_read) {
/* silly script stopped reading, soak up remaining message */
while (ap_get_client_block(r, argsbuffer, HUGE_STRING_LEN) > 0) {
ap_bflush(script_out);
- ap_kill_timeout(r);
}
ap_bclose(script_out);
if (location && location[0] == '/' && r->status == 200) {
/* Soak up all the script output */
- ap_hard_timeout("read from script", r);
while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_in) > 0) {
continue;
}
while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_err) > 0) {
continue;
}
- ap_kill_timeout(r);
-
-
/* This redirect needs to be a GET no matter what the original
* method was.
*/
}
ap_bclose(script_in);
- ap_soft_timeout("soaking script stderr", r);
while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_err) > 0) {
continue;
}
- ap_kill_timeout(r);
ap_bclose(script_err);
}
if (r->header_only) {
return 0;
}
- ap_hard_timeout("send server info", r);
ap_rputs(DOCTYPE_HTML_3_2
"<html><head><title>Server Information</title></head>\n", r);
ap_rputs(ap_psignature("",r), r);
ap_rputs("</body></html>\n", r);
/* Done, turn off timeout, close file and return */
- ap_kill_timeout(r);
return 0;
}
{
r->content_type = "text/html";
ap_send_http_header(r);
- ap_hard_timeout("send menu", r); /* killed in menu_footer */
+
ap_rvputs(r, DOCTYPE_HTML_3_2, "<html><head>\n<title>Menu for ", r->uri,
"</title>\n</head><body>\n", NULL);
static void menu_footer(request_rec *r)
{
ap_rputs("\n\n</body>\n</html>\n", r); /* finish the menu */
- ap_kill_timeout(r);
}
static int imap_handler(request_rec *r)