You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Taipei-Torrent checks if a peer has advertised metadata support here. If the peer has, it kicks off the metadata-request processing by asking for the first piece of the metadata.
Whenever Taipei-Torrent receives a metadata response, DoMetadata. The problem is that each timeDoMetadata is called with a metadata response, it attempts to fetch all missing metadata pieces.
Consider this scenario:
The client connects to a peer advertising metadata support, and requests the first piece of the metadata (piece 0).
The client receives piece 0 from the peer, and requests all of the missing pieces (in this case, 10).
The peer sends back metadata piece 1. However, since none of the other metadata pieces have been received, the client will send another request for every piece besides 0 and 1, even though requests for those pieces are already in-flight.
Step 3 continues for each received piece, until the client has all of the pieces (after issuing many duplicate requests).
I believe a good solution is to poll the peer for a piece if a response for it is not received, similar to how a tracker is polled for a response.
The text was updated successfully, but these errors were encountered:
Currently, Taipei-Torrent checks if a peer has advertised metadata support here. If the peer has, it kicks off the metadata-request processing by asking for the first piece of the metadata.
Whenever Taipei-Torrent receives a metadata response,
DoMetadata
. The problem is that each timeDoMetadata
is called with a metadata response, it attempts to fetch all missing metadata pieces.Consider this scenario:
I believe a good solution is to poll the peer for a piece if a response for it is not received, similar to how a tracker is polled for a response.
The text was updated successfully, but these errors were encountered: