squishy

Thu, 23 Mar 2023 12:14:53 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 23 Mar 2023 12:14:53 +0000
changeset 172
2c17151ed21b
parent 171
433a1f36d0d3
child 174
662bd8c5ae28
permissions
-rw-r--r--

client: Fix timeout handling

Previously, the timeout handler would fire an error that would get caught and
logged by the timer code. However that error never reached the upper levels of
scansion, leading to the whole thing just hanging.

Now we just trigger resumption of the async runner, and throw the error from
there if we haven't received the stanza yet.

With this change, timeouts are now correctly handled and reported as failures.

Main "main.lua"

Output "scansion.bin"
Option "executable"

Module "scansion.async"
Module "scansion.error"
Module "scansion.parser"
Module "scansion.helpers"
Module "scansion.iterators"
Module "scansion.objects.client"
Module "scansion.queue"
Module "scansion.stanzacmp"
Module "scansion.xml"
Module "scansion.console"
Module "scansion.pretty"

if GetOption "with-verse" then
	Module "verse"
end

if GetOption "with-server" then
	Module "scansion.serve"
	Module "net.http.server" "serve/net/http/server.lua"
	Module "net.http.parser" "serve/net/http/parser.lua"
	Module "net.http.codes"  "serve/net/http/codes.lua"
	Module "util.cache"      "serve/util/cache.lua"
end

mercurial