diff --git a/mtproto-client.c b/mtproto-client.c index 784fc40..2aad896 100644 --- a/mtproto-client.c +++ b/mtproto-client.c @@ -1884,7 +1884,6 @@ void mtproto_close(struct mtproto_connection *mtp) { } stop_ping_timer (mtp->connection); } - // remove all ping timer that point to this connection } /** diff --git a/net.c b/net.c index 89dfc50..bc0c7aa 100644 --- a/net.c +++ b/net.c @@ -67,7 +67,6 @@ int ping_alarm (struct connection *c) { warning ( "fail connection: reason: ping timeout\n"); c->state = conn_failed; fail_connection (c); - } else if (get_double_time () - c->last_receive_time > 5 * PING_TIMEOUT && c->state == conn_ready) { debug ("sending PING...\n"); int x[3]; @@ -327,11 +326,8 @@ int try_write (struct connection *c) { x += r; c->out_head->rptr += r; if (c->out_head->rptr != c->out_head->wptr) { - // Inhalt des Buffers nicht komplett abgeschickt, - // es geht nichts mehr in den Socket break; } - // buffer ausgelesen, alten buffer löschen struct connection_buffer *b = c->out_head; c->out_head = b->next; if (!c->out_head) {