[skip ci] Unknown SID long polller
This commit is contained in:
1 parent
cb4b25b696
commit
451669f4dd
1 file changed
+5
-3
@@ -198,10 +198,12 @@ class LongPoller
|
|||||||
m.status_code = Val(statusCode)
|
m.status_code = Val(statusCode)
|
||||||
m.status_text = status.Mid(spaceIndex + 1)
|
m.status_text = status.Mid(spaceIndex + 1)
|
||||||
if m.status_code <> 200
|
if m.status_code <> 200
|
||||||
if m.status_code = 410 or (m.status_code = 400 and m.status_text = "Unknown SID")
|
' TODO:P2 refactor http parsing! headers probably contains a keep-alive, but we
|
||||||
LogErrorNoTelemetry("Invalid status code:", m.status_code, m.status_text, `\nResponse data:`, m.socket_buffer)
|
' 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
|
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
|
end if
|
||||||
m.CloseSocket()
|
m.CloseSocket()
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in new issue
Block a user