aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-04-29 11:30:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-04-29 11:30:03 +0000
commite2c6e00570da70c00c7c75fa8f094eda77376d0c (patch)
tree129f6d2255399ed3fea79306bd273772f66c5d81 /lib
parente4a0001fc6d9efbd85e0ce187d98fd59a0839db2 (diff)
- Based on bug report #2723219 (http://curl.haxx.se/bug/view.cgi?id=2723219)
I've now made TFTP "connections" not being kept for re-use within libcurl. TFTP is UDP-based so the benefit was really low (if even existing) to begin with so instead of tracking down to fix this problem we instead removed the re-use. I also enabled test case 1099 that I wrote a few days ago to verify that this change fixes the reported problem.
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];