aboutsummaryrefslogtreecommitdiff
path: root/lib/roles
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2021-06-29 13:30:48 +0100
committerAndy Green <andy@warmcat.com>2021-07-04 10:29:54 +0100
commitee510154a0dc3255d9ef5969e7a42b74ad803afe (patch)
tree01ddd4a2f56f709d37016013a5c987be7678b491 /lib/roles
parent36e7e8af78c8434878f6d691463dc07e546a7664 (diff)
downloadlibwebsockets-ee510154a0dc3255d9ef5969e7a42b74ad803afe.tar.gz
fi: wsi: fault to fake peer hangup after a delay range
Example usage, client $ valgrind ./bin/lws-minimal-secure-streams-stress-client -c 4 --budget 40 proxy $ valgrind ./lws-minimal-secure-streams-proxy --fault-injection "ss=mintest/wsi/timedclose(20%),ss=mintest/wsi/timedclose_ms(0..100)"
Diffstat (limited to 'lib/roles')
-rw-r--r--lib/roles/http/server/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roles/http/server/server.c b/lib/roles/http/server/server.c
index ea68f849..499a4e3d 100644
--- a/lib/roles/http/server/server.c
+++ b/lib/roles/http/server/server.c
@@ -106,7 +106,6 @@ deal:
if (a->vhost->iface) {
- lwsl_err("%s\n", a->vhost->iface);
/*
* let's check before we do anything else about the disposition
* of the interface he wants to bind to...
@@ -307,6 +306,7 @@ done_list:
lwsl_err("Out of mem\n");
goto bail;
}
+
wsi->af = (uint8_t)a->af;
#ifdef LWS_WITH_UNIX_SOCK