You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2021/09/10 13:11:20 UTC

[Bug 65180] mod_proxy_wstunnel stuck processes at graceful stopping

https://bz.apache.org/bugzilla/show_bug.cgi?id=65180

shieldwed@outlook.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shieldwed@outlook.com

--- Comment #7 from shieldwed@outlook.com ---
I can confirm this issue with the following details:

Server Version: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f
Server MPM: event
Server Built: 2021-07-05T07:16:56

...............GGG........................G.......G.............
......G............G.....G...G..............G.G.G............G..
..........G..................G.......G...........G..............
...........G...............G..................G..............G..
.....G...............G........G.G..................GG...........
GGGGGGG.GG.G.GG............G...................G..........G.....
G.................G..............G..G.......GG......G......GGG..
........GG.G....W_WWWWWWWWWWWWWW_WWW_WRWWW_WWWWW..GG...G..GGG.G.
............G............G.G....................________________
................................................................
................................................................
................................................................
................................................................

Eventually, all processes have at least one gracefully terminating connection,
and then no more new connections are accepted.

Same as stated above, I could provoke this situation by reloading Apache.

Configuration includes mod_proxy and mod_proxy_wstunnel and a reverse proxy
configuration like this:

RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:8888/$1 [P,L]
RewriteRule /(.*) http://127.0.0.1:8888/$1 [P,L]

Having attached the debugger to a process containing one such gracefully
stopping connection, I got the following stack trace for the specific thread:

Thread 26 (Thread 0x7f7e02bcd700 (LWP 320536)):
#0  0x00007f7e182895ce in epoll_wait (epfd=28, events=0x7f7e157a55a8,
maxevents=2, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1  0x00007f7e183a178e in ?? () from target:/lib/x86_64-linux-gnu/libapr-1.so.0
#2  0x00007f7e17ff0e2e in ?? () from
target:/usr/lib/apache2/modules/mod_proxy_wstunnel.so
#3  0x00007f7e17c144eb in proxy_run_scheme_handler () from
target:/usr/lib/apache2/modules/mod_proxy.so
#4  0x00007f7e17c152ae in ?? () from
target:/usr/lib/apache2/modules/mod_proxy.so
#5  0x000055d8625686a8 in ap_run_handler ()
#6  0x000055d862568c56 in ap_invoke_handler ()
#7  0x000055d862581403 in ap_process_async_request ()
#8  0x000055d86257d7c3 in ?? ()
#9  0x000055d8625723e8 in ap_run_process_connection ()
#10 0x00007f7e17c8910e in ?? () from
target:/usr/lib/apache2/modules/mod_mpm_event.so
#11 0x00007f7e17c89b17 in ?? () from
target:/usr/lib/apache2/modules/mod_mpm_event.so
#12 0x00007f7e18362609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#13 0x00007f7e18289293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org