This website works better with JavaScript.
首頁
探索
說明
登入
Immanuel
/
btpd
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Kill a peer when write indicates a closed connection.
master
Richard Nyberg
19 年之前
父節點
1aee379342
當前提交
40ffcd13c2
共有
1 個文件被更改
,包括
4 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
btpd/net.c
+ 4
- 0
btpd/net.c
查看文件
@@ -231,6 +231,10 @@ net_write(struct peer *p, unsigned long wmax)
peer_kill(p);
return 0;
}
} else if (nwritten == 0) {
btpd_log(BTPD_L_CONN, "connection close by peer.\n");
peer_kill(p);
return 0;
}
bcount = nwritten;
Write
Preview
Loading…
取消
儲存