-/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <signal.h>
#include <stdbool.h>
#include <string.h>
+#include <unistd.h>
#include "libknot/errcode.h"
#include "contrib/net.h"
r = close(server);
is_int(0, r, "server, close socket");
+ usleep(50000);
r = net_stream_send(client, (uint8_t *)"", 1, TIMEOUT);
is_int(KNOT_ECONN, r, "client, refused on write");