Open grigzy28 opened 5 years ago
I think it's "normal" in that it's a benign error, but it shouldn't be getting presented to the user like this.
I think what's happening is this. You successfully uploaded to all but one host, which timed out. The connections to the other hosts aren't closed until all of the uploads have finished, so while you were waiting on the slow host, those other connections were still open. But after 5 minutes of no activity, hosts will close their end of the connection (this is a DoS prevention measure). Then, once the bad host finally timed out, we send a "hangup" message to each host, indicating that we're closing the connection gracefully -- but since the hosts have already closed their end of the connection, we get a broken pipe error.
So in essence, broken pipe
comes from us trying to send a "please close the connection" message to a host that has already closed the connection. That's why it's benign.
The obvious fix here is that if we try to send the "hangup" message and the connection is already closed, just ignore the error. I will implement this soon.
Thanks for the bug reports, by the way -- they are super helpful! :) I assume that other people have seen similar bugs, but did not report them, which is sad, because most of them are simple fixes and would save other users some frustration.
I've noticed that when there is a connection timed out error it will cause all other good hosts to give the broken pipe error.
Is this normal behavior? I was able to successfully able to upload this file after removing the one timed out host.