aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 509c2ccae..6440f8025 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -863,7 +863,9 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
return CURLE_OUT_OF_MEMORY;
}
- conn->bits.close = FALSE; /* keep it open if possible */
+ conn->bits.close = TRUE; /* we don't keep TFTP connections up bascially
+ because there's none or very little gain for UDP
+ */
state->conn = conn;
state->sockfd = state->conn->sock[FIRSTSOCKET];