Thu, 23 Mar 2023 12:14:53 +0000
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.
94 | 1 | FROM ubuntu:xenial |
2 | ||
3 | MAINTAINER Matthew Wild <mwild1@gmail.com> | |
4 | ||
5 | RUN apt-get update \ | |
6 | && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
7 | lua5.2 \ | |
8 | lua-cjson \ | |
9 | lua-expat \ | |
140
2758cfb4e26d
Dockerfile: Add luafilesystem for '-d'
Matthew Wild <mwild1@gmail.com>
parents:
94
diff
changeset
|
10 | lua-filesystem \ |
94 | 11 | lua-sec \ |
12 | lua-socket \ | |
13 | make \ | |
14 | && rm -rf /var/lib/apt/lists/* | |
15 | ||
16 | RUN ln -s /usr/bin/lua5.2 /usr/local/bin/lua | |
17 | ||
18 | RUN mkdir -p /tmp/build | |
19 | ||
20 | ADD . /tmp/build | |
21 | ||
22 | WORKDIR /tmp/build | |
23 | ||
24 | RUN ./configure && make && install build/scansion /usr/local/bin/scansion && rm -rf /tmp/build | |
25 | ||
26 | ADD verse.lua /usr/local/share/lua/5.2/verse.lua | |
27 | ||
28 | ADD misc/docker-entrypoint.sh /entrypoint.sh | |
29 | ||
30 | RUN chmod a=rx /entrypoint.sh | |
31 | ||
32 | ENTRYPOINT ["/entrypoint.sh"] | |
33 | ||
34 | USER nobody | |
35 | ||
36 | ADD scripts /scripts | |
37 | ||
38 | VOLUME ["/scripts"] | |
39 | ||
40 | WORKDIR /scripts | |
41 | ||
141
7b774278ca84
Dockerfile: Run all tests in /scripts by default
Matthew Wild <mwild1@gmail.com>
parents:
140
diff
changeset
|
42 | CMD ["-d", "/scripts"] |
94 | 43 |