[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 359/411: tests/server/tftpd.c: close upload file right after tra
From: |
gnunet |
Subject: |
[gnurl] 359/411: tests/server/tftpd.c: close upload file right after transfer |
Date: |
Wed, 13 Jan 2021 01:22:54 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit c353207057b45c0e814823b5fe5eabeb4cc2d707
Author: Marc Hoersken <info@marc-hoersken.de>
AuthorDate: Fri Nov 20 08:13:47 2020 +0100
tests/server/tftpd.c: close upload file right after transfer
Make sure uploaded file is no longer locked after the
transfer while waiting for the final ACK to be handled.
Assisted-by: Daniel Stenberg
Bug: #6058
Closes #6209
---
tests/server/tftpd.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 4215bfe4a..fdd6e061e 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -821,11 +821,6 @@ int main(int argc, char **argv)
sclose(peer);
peer = CURL_SOCKET_BAD;
- if(test.ofile > 0) {
- close(test.ofile);
- test.ofile = 0;
- }
-
if(got_exit_signal)
break;
@@ -1304,6 +1299,10 @@ send_ack:
}
} while(size == SEGSIZE);
write_behind(test, pf->f_convert);
+ if(test->ofile > 0) {
+ close(test->ofile);
+ test->ofile = 0;
+ }
rap->th_opcode = htons((unsigned short)opcode_ACK); /* send the "final"
ack */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 285/411: configure: use pkgconfig to find openSSL when cross-compiling, (continued)
- [gnurl] 285/411: configure: use pkgconfig to find openSSL when cross-compiling, gnunet, 2021/01/12
- [gnurl] 354/411: cmake: make CURL_ZLIB a tri-state variable, gnunet, 2021/01/12
- [gnurl] 357/411: mailmap: Daniel Hwang, gnunet, 2021/01/12
- [gnurl] 265/411: CMake: store IDN2 information in curl_config.h, gnunet, 2021/01/12
- [gnurl] 351/411: KNOWN_BUGS: cmake autodetects cert paths when cross-compiling, gnunet, 2021/01/12
- [gnurl] 222/411: build-wolfssl: fix build with Visual Studio 2019, gnunet, 2021/01/12
- [gnurl] 202/411: src: Consistently spell whitespace without whitespace, gnunet, 2021/01/12
- [gnurl] 224/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 277/411: range.d: fix typo, gnunet, 2021/01/12
- [gnurl] 296/411: sendf: move the verbose-check into Curl_debug, gnunet, 2021/01/12
- [gnurl] 359/411: tests/server/tftpd.c: close upload file right after transfer,
gnunet <=
- [gnurl] 321/411: test493: verify --hsts upgrade and that %{url_effective} reflects that, gnunet, 2021/01/12
- [gnurl] 314/411: docs: Fix various typos in documentation, gnunet, 2021/01/12
- [gnurl] 364/411: http3: use the master branch of GnuTLS for testing, gnunet, 2021/01/12
- [gnurl] 349/411: KNOWN_BUGS: cmake libcurl.pc uses absolute library paths, gnunet, 2021/01/12
- [gnurl] 278/411: CURLOPT_DNS_USE_GLOBAL_CACHE.3: fix typo, gnunet, 2021/01/12
- [gnurl] 329/411: Revert "libcurl.pc: make it relocatable", gnunet, 2021/01/12
- [gnurl] 327/411: Curl_pgrsStartNow: init speed limit time stamps at start, gnunet, 2021/01/12
- [gnurl] 310/411: KNOWN_BUGS: FTPS with Schannel times out file list operation, gnunet, 2021/01/12
- [gnurl] 295/411: travis: use valgrind when running tests for debug builds, gnunet, 2021/01/12
- [gnurl] 342/411: CURLOPT_HSTS.3: document the file format, gnunet, 2021/01/12