1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-28 11:57:22 +03:00
Commit Graph

171 Commits

Author SHA1 Message Date
Paul Querna
196fce4667 * mod_log_config.c: Revert r109866 which used apr_file_writev instead of an
apr_file_write w/ a memcpy. Roy Fielding provided a -1 veto
                    on the commit, based on concerns that writev is not 
                    guaranteed to be atomic like a write.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@110069 13f79535-47bb-0310-9956-ffa450edef68
2004-12-07 03:41:18 +00:00
Paul Querna
9d58018f5e mod_log_config.c: Use iovecs to write the log line to eliminate a memcpy
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@109866 13f79535-47bb-0310-9956-ffa450edef68
2004-12-05 07:05:23 +00:00
Bradley Nicholes
804ff9ab22 Allow APR to exist and build outside of the httpd/srclib file structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106975 13f79535-47bb-0310-9956-ffa450edef68
2004-11-30 00:12:39 +00:00
Joe Orton
c36ecfa64f Remove the .cvsignore files.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105796 13f79535-47bb-0310-9956-ffa450edef68
2004-11-19 09:07:29 +00:00
Jeff Trawick
ecab476cae mod_log_config: Fix a bug which prevented request completion time
from being logged for I_INSIST_ON_EXTRA_CYCLES_FOR_CLF_COMPLIANCE
processing.

PR:             29696
Submitted by:   Alois Treindl <alois astro.ch>
Reviewed by:	Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103991 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 13:08:06 +00:00
André Malo
e47931813e this should save one or two cycles
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103767 13f79535-47bb-0310-9956-ffa450edef68
2004-05-25 19:39:50 +00:00
Joe Orton
96c0ef3f90 * modules/loggers/mod_log_config.c, server/log.c (open_error_log,
ap_replace_stderr_log): Use APR_LARGEFILE when opening log files, to
allow log files to exceed the 2Gb limit if necessary.

PR: 13511


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103627 13f79535-47bb-0310-9956-ffa450edef68
2004-05-06 10:18:07 +00:00
André Malo
b8e029ae12 fix build on systems without unistd.h
Submitted by: Guenter Knauf <eflash gmx.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103530 13f79535-47bb-0310-9956-ffa450edef68
2004-04-26 18:58:59 +00:00
André Malo
de6b6ff89d add dsp and exp file for mod_log_forensic
incorporate into Win32 build


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103454 13f79535-47bb-0310-9956-ffa450edef68
2004-04-19 18:34:59 +00:00
André Malo
c2a3b20bea cleanup log_header_out function:
- no need to ask r->err_headers_out, because it's already merged with
  r->headers_out at this stage
- allow multiple headers like Set-Cookie to be logged properly

PR: 27787


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103331 13f79535-47bb-0310-9956-ffa450edef68
2004-04-10 17:48:52 +00:00
André Malo
d3ffc73171 no longer remove the EOS bucket
PR: 27928
Submitted by: Bojan Smojver <bojan rexursive.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103263 13f79535-47bb-0310-9956-ffa450edef68
2004-04-03 20:50:00 +00:00
Jeff Trawick
3273ddb6de fix an old misfeature: "BufferedLogs Off" would sort-of turn
buffered logging on as it set the log writer to the buffered log
writer, though it would leave the are-logs-buffered flag off

this misfeature combined with recent mutex logic for buffered logs
led to a segfault with "BufferedLogs Off"


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102783 13f79535-47bb-0310-9956-ffa450edef68
2004-02-26 20:15:26 +00:00
Jeff Trawick
7122d6ea3a a kind fix for a compile error unfortunately broke an order
dependency...  the buffered logs array needs to be initialized
prior to opening the logs


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102781 13f79535-47bb-0310-9956-ffa450edef68
2004-02-26 20:00:55 +00:00
André Malo
d20937008b forward port to not log twice
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102730 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 17:09:20 +00:00
André Malo
f93ccbd7c2 do not exit() from inside a module!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102729 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 16:38:36 +00:00
André Malo
c3617eb632 ugh! Fix log open error condition, which never matched.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102728 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 15:53:49 +00:00
André Malo
4f71cbdc98 allow log pipes to be relative to serverroot as well
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102727 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 15:45:02 +00:00
André Malo
9ae33ec8ed there's no such default
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102725 13f79535-47bb-0310-9956-ffa450edef68
2004-02-21 15:23:24 +00:00
André Malo
a688f06b19 fix name of The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102618 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:31:03 +00:00
André Malo
3097e08b49 oops
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102568 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 12:14:07 +00:00
André Malo
5410a0d131 fix copyright dates according to the first checkin
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102566 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 12:10:29 +00:00
André Malo
4f02cb1e18 apply Apache License, Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 22:58:42 +00:00
André Malo
866b6af8f3 in conservative C declarations still have to be the first in a function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102361 13f79535-47bb-0310-9956-ffa450edef68
2004-01-18 00:00:18 +00:00
Jeff Trawick
e6834bc9b4 mod_log_config: Fix corruption of buffered logs with threaded
MPMs.

PR:               25520


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102355 13f79535-47bb-0310-9956-ffa450edef68
2004-01-17 00:16:45 +00:00
Joe Orton
b92c3e35e8 * modules/loggers/config.m4: Fix --enable-mods-shared=all case where
$enable_log_forensic gets set to the empty string.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102241 13f79535-47bb-0310-9956-ffa450edef68
2004-01-09 11:47:39 +00:00
Martin Kraemer
601c88636f Undo last change in order not to break Netware builds...
PR:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102190 13f79535-47bb-0310-9956-ffa450edef68
2004-01-05 11:12:03 +00:00
Martin Kraemer
ece48280a1 Ugly hack to get this module to compile. The path to test_char.h (which
lives in the server/ directory) must either be added to one of the build/*.m4
files --which would be even uglier--, to the modules/logger/Makefile, or
to the modules/loggers/mod_log_forensic.c file itself. For now, put it here.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102186 13f79535-47bb-0310-9956-ffa450edef68
2004-01-05 10:33:52 +00:00
Joe Orton
dd1b0f0576 * modules/loggers/config.m4: Add 'server' directory to include path if
mod_log_forensic is enabled.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102167 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 20:15:59 +00:00
Bradley Nicholes
72729828ca Add mod_log_forensic to the NetWare build
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102165 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 19:40:33 +00:00
Bradley Nicholes
eb529a4d7c Don't hardcode the location of the test_char.h header. The path should be added to the INCLUDE path. Also, use the apr_uint32_t type for next_id which is compatible with the apr_atomic functions.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102164 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 19:18:53 +00:00
Erik Abele
b20a1ec4df Add missing apr_ to size_t.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102156 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 16:02:15 +00:00
Joe Orton
44a849be1c * modules/loggers/mod_log_forensic.c (struct hlog, log_before,
log_after): Use apr_size_t for storing string sizes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102154 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 15:49:57 +00:00
Ben Laurie
b2d154535b Make forensic logging EBCDIC-safe.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102153 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 15:33:41 +00:00
Ben Laurie
069b75134b Use ap_assert().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102152 13f79535-47bb-0310-9956-ffa450edef68
2004-01-03 14:35:21 +00:00
André Malo
ca1c2f06ea prevent module from segfaulting when not configured.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102145 13f79535-47bb-0310-9956-ffa450edef68
2004-01-02 23:35:59 +00:00
Ben Laurie
c154a09f30 Add forensic logging.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102141 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 15:39:30 +00:00
André Malo
fb07607180 update license to 2004.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 13:26:26 +00:00
Joe Orton
3be85f7869 * modules/loggers/mod_log_config.c (log_request_time): Log
the minutes component of the timezone correctly.

PR: 23642
Submitted by: Hong-Gunn Chew <hgbug@gunnet.org>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101703 13f79535-47bb-0310-9956-ffa450edef68
2003-11-05 17:16:00 +00:00
André Malo
fa20e7a4a7 fix %b format to write really "-" if bytes_sent == 0.
Submitted by: Kess


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101021 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 16:03:03 +00:00
Jeff Trawick
4144e68db8 fix a comment to explain how to log the thread id
Submitted by:          nd


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99818 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:32:41 +00:00
Jeff Trawick
ab74e345f0 as Andre' pointed out, we don't need %{pid/tid}P since the user
can do %P/%{tid}P or %{pid}P/%{tid}P


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99449 13f79535-47bb-0310-9956-ffa450edef68
2003-04-19 03:06:30 +00:00
Jeff Trawick
f96aba98f9 change the way that thread id is specified in the log format since
the previous implementation used a format string already taken
by mod_logio

now, an optional %P format is used instead

thanks to Andre' Malo for pointing out that I chose a format string
already used by mod_logio!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99442 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 19:40:11 +00:00
Jeff Trawick
5d79cd7197 mod_log_config: Add the ability to log the id of the thread
processing the request (%I).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99439 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 10:44:11 +00:00
William A. Rowe Jr
1e7b7d79bb SECURITY: Eliminated leaks of several file descriptors to child
processes, such as CGI scripts.

PR: 17206
Submitted by:	Christian Kratzer <ck@cksoft.de>, Bjoern A. Zeeb <bz@zabbadoz.net>
Reviewed by:	Joe Orton, Will Rowe


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99032 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 21:50:40 +00:00
William A. Rowe Jr
281948b722 After discussions at length on dev@apr/httpd, it is determined that
the older .dbg format symbols are not worth the interference with
  generating complete .pdb symbolic debugging databases.

  This patch further eliminates pdbtype:sept flags that interfere with
  deciphering local symbols and type information.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98970 13f79535-47bb-0310-9956-ffa450edef68
2003-03-11 00:58:59 +00:00
André Malo
c8185c253b Minor MMN bump:
Forward port: Escape special characters (especially control
characters) in mod_log_config to make a clear distinction between
client-supplied strings (with special characters) and server-side
strings. This was already introduced in version 1.3.25.

Obtained from: Patch in 1.3.25-dev by Martin


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98912 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 23:53:52 +00:00
André Malo
f57b6f9c2c Let mod_logio be mostly included.
Submitted by: Astrid Ke�ler


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98909 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 21:57:45 +00:00
William A. Rowe Jr
25ac108fe2 After consultations on the APR list, it was decided that /map files are
fairly redundant when you retain rich .pdb debugging symbol files.  We
  have rarely used them, and generally .dbg and .pdb files prove much more
  useful for the cases we have.

  While eliminating /map files, we are also shrinking the size of the .dbg
  files by stripping 'private' symbol information.  Really this means less
  rich diagnostics from Dr. Watson on NT or Win9x when they query the .dbg
  symbols in creating a DrWatson log file.  But it's more than compensated
  for on newer OS'es where Dr. Watson will query the .pdb symbols, on all
  Win32 flavors when WinDbg is used with the .pdb symbols, and the fact that
  the distribution of binary symbols will use less bandwidth when less
  information is duplicated from the .pdb format into the .dbg files.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98743 13f79535-47bb-0310-9956-ffa450edef68
2003-02-20 15:56:04 +00:00
William A. Rowe Jr
e8c0a9532f foo.dbgmark turned out to be the same 8.3 name as foo.dbg itself, which
was badness.  Twist this puppy to .dbr, the only name I could invent that
  doesn't look like any database file extension I recall.

  It stands for .dbg rebased.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98712 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 22:07:21 +00:00
Ian Holsman
7f5768e187 change optional function to return the previous writer, allowing to have mutliple types
of writers in the same server. (previously you could only have one)

it needs a mmn bump.. sorry guys
;(


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98648 13f79535-47bb-0310-9956-ffa450edef68
2003-02-14 04:17:34 +00:00