the next connect will immediatly timeout again which is not intended.
It does not matter in the other case since the connection is destroyed anyway.
Problem noticed by job@ and Jelle (jelle (at) luteijn.email)
OK job@ tb@
-/* $OpenBSD: http.c,v 1.73 2022/11/02 16:50:51 claudio Exp $ */
+/* $OpenBSD: http.c,v 1.74 2023/05/10 15:24:41 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
if (conn->pfd != NULL && conn->pfd->revents != 0)
http_do(conn, http_handle);
else if (conn->io_time <= now) {
+ conn->io_time = 0;
if (conn->state == STATE_CONNECT) {
warnx("%s: connect timeout",
conn_info(conn));