_apachemodule.c

Checkout Tools
  • last updated 56 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
(MODPYTHON-128) The apache.stat() function, which is a wrapper for the

apr_stat() function, should still return a valid finfoobject when the

target of the apr_stat() call does not exist. This is instead of raising

an exception. This is necessary as otherwise there is no way of replacing

req.finfo with a finfoobject where req.finfo.filetype is APR_NOFILE. An

exception will only be raised now if a truly unexpected problem arises.

Callers of apache.stat() need to check finfo.filetype for APR_NOFILE if

they need to know if target existed or not.

  1. … 2 more files in changeset.
(MODPYTHON-128) Removed apache.lstat() due to apr_lstat() having being

deprecated in Apache 2.2. Similar outcome can be had by supplying

APR_FINFO_LINK flag with arguments to apache.stat().

  1. … 5 more files in changeset.
(MODPYTHON-190) Added comments for lines of code which will require attention

for Python 2.5 / 64-bit support. These were the lines that were identified

by the ssizecheck.py script.

  1. … 6 more files in changeset.
(MODPYTHON-128) Changed req.finfo to be an object where fields of underlying

fields of apr_finfo_t structure are accessed as object attributes. Tuple

style access is still maintained for backward compatability. The req.finfo

attribute is now also writable and can be assigned with the result of calling

new functions apache.stat() and apache.lstat().

  1. … 13 more files in changeset.
Fix for #MODPYTHON-172 and other memory leaks in req.readlines and cfgtree_walk.
  1. … 2 more files in changeset.
Added the filetype attribute of the Apache finfo structure to the tuple

returned when accessing req.finfo. This value is accessed using

req.finfo[apache.FINFO_FILETYPE]. New constants apache.APR_NOFILE,

apache.APR_REG, apache.APR_DIR etc, have been added for comparing with the

filetype value. (MODPYTHON-128)

  1. … 5 more files in changeset.
Added missing Apache contants apache.PROXYREQ_RESPONSE and

apache.HTTP_UPGRADE_REQUIRED. Also added new constants for Apache magic

mime types and values for interpreting the req.connection.keepalive and

req.read_body members. (MODPYTHON-148)

  1. … 4 more files in changeset.
Code cleanup. Changed C++ style comments to C style.

  1. … 1 more file in changeset.
This should resolve MODPYTHON-89 : add new apache.exists_config_define() function.
  1. … 3 more files in changeset.
Fix for MODPYTHON-37 by Graham Dumpleton.
  1. … 3 more files in changeset.
Fixed MODPYTHON-58

Index for mutex passed to _global_lock, _global_unlock, _global_trylock is now checked to make sure it is in appropriate range.

Fix a compilation error which is detected by GCC 3.4 but not by MSVC7.
  1. … 1 more file in changeset.
First go at trying to implement _apache._global_trylock.
property cleanup

  1. … 75 more files in changeset.
New license

  1. … 42 more files in changeset.
This fixes the http://myserver/?& parse_qsl() segfault reported by Matt Hoskins

This gigantic patch gets rid of all tabs in C code. I know this is ugly, but

better late than never!

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 20 more files in changeset.
Much needed documentation spelling corrections. Thanks Ville!

PR:

Obtained from:

Submitted by: Ville Skytt�

Reviewed by:

  1. … 9 more files in changeset.
Added MemorySession, as well as changed some other misc stuff.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 4 more files in changeset.
Added mpm_query()

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 3 more files in changeset.
Make sure session lock index cannot be 0 to avoid deadlocks with the

dbm lock which uses 0.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 3 more files in changeset.
Renamed setCookie to add_cookie

Renamed getCookie to get_cookies

get_cookies now passes any **kw args to parse

added Session and docs for it

added dbm caching for psp

added _global_lock/_unlock to _apache

parser deals correctly with \r\n on win/dos

also added tests for session

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 11 more files in changeset.
Mod_python package now includes _psp.so which is also built and

installed using distutils and does not #include <mod_python.h>. This

means it can be used from command line opening the door for us to

write command-line tools to compile psp pages.

psp.py has been greatly simplified. psp_interface.c renamed to

_pspmodule.c to be consistent with everything else.

The flex-generated psp_parser.c now supports the syntax whereby the

last indent in Python code sticks (this has been better described on

the dev list). I have not received any (constructive) negative (or any

positive) feedback, so for now this is where we are.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 16 more files in changeset.
Take Roy Fielding's advice and keep Grisha's email address out of the

source code. No need to send yet more spam his way :-)

  1. … 29 more files in changeset.
Addressed all (or most) compiler warnings. Also tested on FreeBSD and

added a not in the README re how to compile on it because of the

FreeBSD threads unease.

  1. … 11 more files in changeset.
Added apache.config_tree() and apache.server_root().

  1. … 4 more files in changeset.
WHAM!

Revamp the copyright/license headers in all(?) of the files. Include

the appropriate attribution/recognition to Grisha's original work.

  1. … 29 more files in changeset.
added PythonConnectionHandler and returned PythonEnablePdb

  1. … 11 more files in changeset.
changes for windows build

  1. … 7 more files in changeset.
the new table object now passes all tests

  1. … 3 more files in changeset.