Skip to content
Snippets Groups Projects
Commit 772399f9 authored by rswindell's avatar rswindell
Browse files

Fixed bug in send_thread() that could send partial files if the last block was

retried because of a EWOULDBLOCK error (new bug due to non-blocking socket).
parent 66a90405
No related branches found
No related tags found
No related merge requests found
......@@ -1389,7 +1389,7 @@ static void send_thread(void* arg)
fseek(fp,xfer.filepos,SEEK_SET);
last_report=start=time(NULL);
while(!feof(fp)) {
while((xfer.filepos+total)<length) {
now=time(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment