Loading ...
Sorry, an error occurred while loading the content.

3993Re: ctorrent

Expand Messages
  • joaoljr
    Feb 1 3:00 PM
    • 0 Attachment
      --- In nslu2-linux@yahoogroups.com, Stephen Henson <steve14679@y...>
      wrote:
      > What bugs did you fix that were causing the client to stall?
      >
      > Steve.

      Based off version 1.3.4:

      ---peer.cpp
      +++peer.cpp
      @@ -230,14 +239,19 @@
      if( (r - 1) != bitfield.NBytes() || !bitfield.IsEmpty())
      return -1;
      bitfield.SetReferBuffer(msgbuf + 5);
      if(bitfield.IsFull() && BTCONTENT.pBF->IsFull()) return -2;
      - return 0;
      +
      + return RequestCheck(); // fixed client stall

      case M_CANCEL:
      if(r != H_CANCEL_LEN || !m_state.remote_interested) return -1;

      ---peerlist.cpp
      +++peerlist.cpp
      @@ -494,7 +492,8 @@
      FD_CLR(sk,rfdp);
      if(peer->GetStatus() == P_HANDSHAKE){
      if( peer->HandShake() < 0 ) peer->CloseConnection();
      - }else{
      + } // fixed client stall
      + if(peer->GetStatus() == P_SUCCESS){
      if( peer->RecvModule() < 0 ) peer->CloseConnection();
      }
      }else if(PEER_IS_SUCCESS(peer) && FD_ISSET(sk,wfdp)){

      Regards,
      Joao
    • Show all 52 messages in this topic