aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/htbt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htbt.c b/src/htbt.c
index 3311893..426f985 100644
--- a/src/htbt.c
+++ b/src/htbt.c
@@ -1590,6 +1590,7 @@ static void htbt_main_slv_cleanup_f (void *ioctx, pth_event_t ev) {
mbedtls_ssl_close_notify,
ctx->fd,
ev);
+ shutdown(ctx->fd, SHUT_RDWR);
}
static ssize_t htbt_main_slv_read_f (