From 451669f4ddcb6d16700294020f2dee4eb2c74491 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 1 Oct 2025 08:00:41 -0400 Subject: [PATCH] [skip ci] Unknown SID long polller --- .../src/components/Services/LoungeService/LongPoller.bs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/playlet-lib/src/components/Services/LoungeService/LongPoller.bs b/playlet-lib/src/components/Services/LoungeService/LongPoller.bs index 0d58d949..29580f5f 100644 --- a/playlet-lib/src/components/Services/LoungeService/LongPoller.bs +++ b/playlet-lib/src/components/Services/LoungeService/LongPoller.bs @@ -198,10 +198,12 @@ class LongPoller m.status_code = Val(statusCode) m.status_text = status.Mid(spaceIndex + 1) if m.status_code <> 200 - if m.status_code = 410 or (m.status_code = 400 and m.status_text = "Unknown SID") - LogErrorNoTelemetry("Invalid status code:", m.status_code, m.status_text, `\nResponse data:`, m.socket_buffer) + ' TODO:P2 refactor http parsing! headers probably contains a keep-alive, but we + ' ignore and close anyway + if m.status_code = 410 or (m.status_code = 400 and m.socket_buffer.InStr("Unknown SID") <> -1) + LogErrorNoTelemetry("Invalid status code:", m.status_code, `\nResponse data:`, m.socket_buffer) else - LogError("Invalid status code:", m.status_code, m.status_text, `\nResponse data:`, m.socket_buffer) + LogError("Invalid status code:", m.status_code, `\nResponse data:`, m.socket_buffer) end if m.CloseSocket() return false