[plugin] HTTPInspector: return InputEvent on every call to reset standby/suspend timer (#13339)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

Fixes #13303.
This commit is contained in:
Frans de Jonge
2025-03-04 11:26:37 +01:00
committed by GitHub
parent 154ec621d3
commit 23ed86a0f8
2 changed files with 2 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ function SimpleTCPServer:waitEvent()
logger.dbg("SimpleTCPServer: Received data: ", data)
-- Give us more time to process the request and send the response
client:settimeout(0.5, "t")
self.receiveCallback(data, client)
return self.receiveCallback(data, client)
-- This should call SimpleTCPServer:send() to send
-- the response and close this connection.
else

View File

@@ -290,6 +290,7 @@ function HttpInspector:sendResponse(reqinfo, http_code, content_type, body)
if self.http_socket then -- in case the plugin is gone...
self.http_socket:send(response, reqinfo.request_id)
end
return Event:new("InputEvent") -- as a key event, reset any standby/suspend timer
end
-- Process a uri, stepping one fragment (consider ? / = as separators)