This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
btpd
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Kill a peer when write indicates a closed connection.
master
Richard Nyberg
19 years ago
parent
1aee379342
commit
40ffcd13c2
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
btpd/net.c
+ 4
- 0
btpd/net.c
View File
@@ -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…
Cancel
Save