Skip to content

Commit 12bcc05

Browse files
Merge branch 'release/4.6.1'
2 parents 630dcf5 + db1b98d commit 12bcc05

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

docs/release-notes.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+
release-notes/version-4.6.1
89
release-notes/version-4.6.0
910

1011
release-notes/version-4.5.24
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=============
2+
Version 4.6.1
3+
=============
4+
5+
Version 4.6.1 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.6.1
8+
9+
Bugs Fixed
10+
----------
11+
12+
* APR version 1.4.X on RHEL/CentOS doesn't have ``apr_hash_this_key()``
13+
function. Swap to using ``apr_hash_this()`` instead.

src/server/wsgi_interp.c

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,21 +2613,25 @@ void wsgi_publish_process_stopping(char *reason)
26132613
PyObject *event = NULL;
26142614
PyObject *object = NULL;
26152615

2616-
interp = wsgi_acquire_interpreter((char *)apr_hash_this_key(hi));
2616+
const void *key;
26172617

2618-
event = PyDict_New();
2618+
apr_hash_this(hi, &key, NULL, NULL);
2619+
2620+
interp = wsgi_acquire_interpreter((char *)key);
2621+
2622+
event = PyDict_New();
26192623

26202624
#if PY_MAJOR_VERSION >= 3
2621-
object = PyUnicode_DecodeLatin1(reason, strlen(reason), NULL);
2625+
object = PyUnicode_DecodeLatin1(reason, strlen(reason), NULL);
26222626
#else
2623-
object = PyString_FromString(reason);
2627+
object = PyString_FromString(reason);
26242628
#endif
2625-
PyDict_SetItemString(event, "shutdown_reason", object);
2626-
Py_DECREF(object);
2629+
PyDict_SetItemString(event, "shutdown_reason", object);
2630+
Py_DECREF(object);
26272631

2628-
wsgi_publish_event("process_stopping", event);
2632+
wsgi_publish_event("process_stopping", event);
26292633

2630-
Py_DECREF(event);
2634+
Py_DECREF(event);
26312635

26322636
wsgi_release_interpreter(interp);
26332637

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 6
28-
#define MOD_WSGI_MICROVERSION_NUMBER 0
29-
#define MOD_WSGI_VERSION_STRING "4.6.0"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 1
29+
#define MOD_WSGI_VERSION_STRING "4.6.1"
3030

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

0 commit comments

Comments
 (0)