It’s for both to prevent stale operations, initiated by uplink. If it’s slow or hanging, the node will kill this connection after the specified timeout.
Thanks. So it does not affect other sending operations like e.g. receving bloom filter, sending orders etc.? It is for timing out uploads and downloads by killing these specific connections?
Is this weird? Does it mean there is a connection still open after 89 hours? Or is this endpoint being reused over and over for new connections?
I dont know exactly what I am seeing there.
BTW. The node is on hashstore but I think it is correct that it still reads piecestore?
Quick thought, don’t have time for more right now. It might be that something in your networking stack silently resets connections, so that your node doesn’t know that it is no longer connected. I had this with my previous router during Storj’s large scale tests due to overloading of NAT. But I would expect the timeout on node’s side to actually work…
That is significant as stream timeout is set to 30s on this node (unless using --storage2.stream-operation-timeout 0m30s in Docker run command is not correct).
The last example is a different node where I had set it to 30 seconds with the added setting to the run command. If the node has applied the command correctly then to my understanding it should be 30 seconds.
Still investigating. What I am seeing in the logs are entries like broken pipe, connection reset by peer or "manager closed: closed: read tcp. These sound like they could result in a such a broken stream that the node does not terminate? Maybe?
These errors are the result of premature connection termination by the uplink—truncation of the long tail. I believe the node should close these connections immediately.
Ok, just to explain what I did during checking. I restarted the node. This of course kills all connections. Then I observed the log with all up and downloads showing well and successfully.
After short time I saw the first connection issue, I think it was an error broken pipe I am not sure but at least one of the errors I had posted.
And when I then did a check the mon/ps upload/downlowd immediately, then I saw exactly 1 that was already over the 30 seconds. So I was assuming it might be the one that showed the error in the log.
Eventually those over the time limits get killed at some point but it is unclear what might be the reason for that.
I don’t know if it is relevent to this but this is with --storage2.stream-operation-timeout 0m30s
My understanding is that the operation should be cancelled after 30 seconds.
And am I understanding this right that this is not a running download it is a connection that appears to be still open (probably long closed on the remote side)?