Files
Michael Peter Christen b1fd3b3185 Fix Jetty 12 active request accounting
Track each HTTP request independently and always release its entry on
completion, failure, or async termination. Enforce the request limit
atomically, remove obsolete connection-close accounting, repair stale
cleanup, and persist the configured maximum correctly.

Update UI terminology, help, localization, and focused regression tests.

- Fixes #800
- Fixes #808
2026-08-16 21:53:13 +02:00

60 lines
2.0 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaCy '#[clientname]#': Connection and Request Tracking</title>
#%env/templates/metas.template%#
<meta http-equiv="REFRESH" content="3" />
</head>
<body id="Connections">
#%env/templates/header.template%#
#%env/templates/submenuAccessTracker.template%#
<script type="text/javascript" src="js/sorttable.js"></script>
<h2>Connection and Request Tracking</h2>
<h3>Incoming HTTP Requests</h3>
<p><span>Active HTTP requests:</span> #[numActiveRunning]#. <span>Remote-request limit:</span> #[numMax]#. <span>Local requests are exempt.</span></p>
<table class="sortable" border="0">
<tr class="TableHeader" valign="bottom">
<td>Protocol</td>
<td>Duration</td>
<td>Source IP[:Port]</td>
<td>Command</td>
<td>ID</td>
</tr>
#{list}#
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
<td>#[proto]#</td>
<td>#[duration]#</td>
<td>#[source]#</td>
<td>#[command]#</td>
<td>#[id]#</td>
</tr>
#{/list}#
</table>
<h3>Outgoing Connections</h3>
<p>Showing #[clientActive]# pooled outgoing connections used as:</p>
<table class="sortable" border="0">
<tr class="TableHeader" valign="bottom">
<td>Protocol</td>
<td>Duration</td>
<td>Up-Bytes</td>
<td>Dest. IP[:Port]</td>
<td>Command</td>
<td>ID</td>
</tr>
#{clientList}#
<tr class="TableCell#(dark)#Light::Dark#(/dark)#">
<td>#[clientProtocol]#</td>
<td>#[clientLifetime]#</td>
<td>#[clientUpbytes]#</td>
<td>#[clientTargetHost]#</td>
<td>#[clientCommand]#</td>
<td>#[clientID]#</td>
</tr>
#{/clientList}#
</table>
#%env/templates/footer.template%#
</body>
</html>