Skip to content

Send new peers piece requests on connect #179

@artrixdotdev

Description

@artrixdotdev

Lets say have already started the torrenting process; we already have our initial peers and our first few pieces. What happens when a new peer connects to us, and we're still waiting on other peers to send us our last piece request. This situation happens quite often actually and if the previous peers just ignore us, we're left at a hard stop. We stop receiving and sending data as the piece request-response loop has stopped. This, obviously needs to change. How would we fix this? Once we connect a peer fully (probably inside the append_peer function) and create its PeerActor, we should send it a piece request for our latest block/piece.

This should probably be done after #178, since the peer may choke us upon connection and that would defeat the whole purpose of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions