소스 검색

Remove unsent requests from the write queue when we receive a choke.

master
Richard Nyberg 20 년 전
부모
커밋
93053ce34a
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      btpd/peer.c

+ 7
- 0
btpd/peer.c 파일 보기

@@ -335,6 +335,13 @@ peer_on_choke(struct peer *p)
else {
p->flags |= PF_P_CHOKE;
cm_on_choke(p);
struct nb_link *nl = BTPDQ_FIRST(&p->outq);
while (nl != NULL) {
struct nb_link *next = BTPDQ_NEXT(nl, entry);
if (nl->nb->type == NB_REQUEST)
peer_unsend(p, nl);
nl = next;
}
}
}



불러오는 중...
취소
저장