Skip to content
Snippets Groups Projects
Commit 782241ab authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed inactive xfers may be disconnected depending on the previous result.

If previous xfer socket was disconnected, the 'ret' variable wasn't cleared
when the current socket is inactive. The outcome of this is that the
innocent transfer could be discarded.

Thanks to Jonathan Hoppe from Netriplex for discovering this.
parent 5518d00a
No related branches found
No related tags found
1 merge request!45Randomly interrupted transfers
......@@ -1114,6 +1114,10 @@ int xfr_worker(dthread_t *thread)
ret = xfr_async_finish(&set, i);
else
ret = xfr_process_event(w, rq);
} else {
/* Inactive connection. */
++i;
continue;
}
/* Check task state. */
......
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