Skip to content

Commit 5328564

Browse files
committed
Fix glyph server - reset request every new received request
1 parent d099010 commit 5328564

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

Http11Probe.sln.DotSettings.user

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARequestSemantics_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fce26b175055a49b19cdd19b6aedc82447200_003F6f_003F500b3600_003FRequestSemantics_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
3+
</wpf:ResourceDictionary>

docs/static/probe/render.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ window.ProbeRender = (function () {
262262
var passPct = (scoredPass / total) * 100;
263263
var warnPct = (scoredWarn / total) * 100;
264264
var failPct = (scoredFail / total) * 100;
265+
var unscoredPct = (unscored / total) * 100;
265266
var rank = i + 1;
266267

267268
html += '<div style="display:flex;align-items:center;gap:10px;">';
@@ -278,6 +279,9 @@ window.ProbeRender = (function () {
278279
if (scoredFail > 0) {
279280
html += '<div style="height:100%;width:' + failPct + '%;background:' + FAIL_BG + ';transition:width 0.3s;"></div>';
280281
}
282+
if (unscored > 0) {
283+
html += '<div style="height:100%;width:' + unscoredPct + '%;background:' + SKIP_BG + ';transition:width 0.3s;"></div>';
284+
}
281285
html += '</div>';
282286
// Score: pass + warn [fail] [unscored] / total
283287
html += '<div style="min-width:200px;text-align:right;font-size:13px;">';

src/Servers/GlyphServer/GlyphServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<!-- Local project reference during development; switch back to NuGet for release -->
1515
<!-- NuGet for CI; project reference for local dev -->
1616
<PackageReference Include="Glyph11" Version="0.3.1" />
17-
<!--<ProjectReference Include="../../../../Glyph11/src/Glyph11/Glyph11.csproj" />-->
1817
</ItemGroup>
1918

2019
</Project>

src/Servers/GlyphServer/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static async Task HandleClientAsync(TcpClient client, CancellationToken ct)
5252
int headerByteCount;
5353
while (true)
5454
{
55+
request.Clear();
5556
var result = await reader.ReadAsync(ct);
5657
var buffer = result.Buffer;
5758

0 commit comments

Comments
 (0)