Selaa lähdekoodia

Kill a peer when write indicates a closed connection.

master
Richard Nyberg 20 vuotta sitten
vanhempi
commit
40ffcd13c2
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. +4
    -0
      btpd/net.c

+ 4
- 0
btpd/net.c Näytä tiedosto

@@ -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;


||||||
x
 
000:0
Loading…
Peruuta
Tallenna