Skip to content

Commit 49bca02

Browse files
Merge branch 'release/4.2.6'
2 parents 8db6ab5 + 81674f7 commit 49bca02

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

docs/release-notes/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release Notes
55
.. toctree::
66
:maxdepth: 2
77

8+
version-4.2.6.rst
89
version-4.2.5.rst
910
version-4.2.4.rst
1011
version-4.2.3.rst

docs/release-notes/version-4.2.6.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
=============
2+
Version 4.2.6
3+
=============
4+
5+
Version 4.2.6 of mod_wsgi can be obtained from:
6+
7+
https://github.com/GrahamDumpleton/mod_wsgi/archive/4.2.6.tar.gz
8+
9+
Known Issues
10+
------------
11+
12+
1. The makefiles for building mod_wsgi on Windows are currently broken and
13+
need updating. As most new changes relate to mod_wsgi daemon mode, which is
14+
not supported under Windows, you should keep using the last available
15+
binary for version 3.X on Windows instead.
16+
17+
Bugs Fixed
18+
----------
19+
20+
1. Apache 2.2.3 and older doesn't provide the ap_get_server_description()
21+
function. Using mod_wsgi with such older versions would therefore cause
22+
processes to crash when Apache was being started up. For older versions of
23+
Apache now fallback to using ap_get_server_version() instead.

src/server/wsgi_interp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,11 @@ InterpreterObject *newInterpreterObject(const char *name)
11681168
object = PyLong_FromLong(max_threads);
11691169
PyModule_AddObject(module, "threads_per_process", object);
11701170

1171+
#if AP_MODULE_MAGIC_AT_LEAST(20051115,4)
11711172
str = ap_get_server_description();
1173+
#else
1174+
str = ap_get_server_version();
1175+
#endif
11721176
#if PY_MAJOR_VERSION >= 3
11731177
object = PyUnicode_DecodeLatin1(str, strlen(str), NULL);
11741178
#else

src/server/wsgi_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
#define MOD_WSGI_MAJORVERSION_NUMBER 4
2727
#define MOD_WSGI_MINORVERSION_NUMBER 2
28-
#define MOD_WSGI_MICROVERSION_NUMBER 5
29-
#define MOD_WSGI_VERSION_STRING "4.2.5"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 6
29+
#define MOD_WSGI_VERSION_STRING "4.2.6"
3030

3131
/* ------------------------------------------------------------------------- */
3232

0 commit comments

Comments
 (0)