소스 검색

Log keep alives.

master
Richard Nyberg 20 년 전
부모
커밋
87f94f9d5f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      btpd/net.c

+ 3
- 1
btpd/net.c 파일 보기

@@ -245,7 +245,9 @@ net_state(struct peer *p, const char *buf)
break;
case BTP_MSGSIZE:
p->net.msg_len = net_read32(buf);
if (p->net.msg_len != 0)
if (p->net.msg_len == 0)
btpd_log(BTPD_L_MSG, "received keep alive from %p\n", p);
else
net_set_state(p, BTP_MSGHEAD, 1);
break;
case BTP_MSGHEAD:


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