ithewei 4 роки тому
батько
коміт
f80f4d4529
1 змінених файлів з 0 додано та 1 видалено
  1. 0 1
      event/hevent.c

+ 0 - 1
event/hevent.c

@@ -608,7 +608,6 @@ static void __keepalive_timeout_cb(htimer_t* timer) {
     hio_t* io = (hio_t*)timer->privdata;
     uint64_t last_rw_hrtime = MAX(io->last_read_hrtime, io->last_write_hrtime);
     uint64_t inactive_ms = (io->loop->cur_hrtime - last_rw_hrtime) / 1000;
-    printf("inactive_ms=%lu\n", inactive_ms);
     if (inactive_ms + 100 < io->keepalive_timeout) {
         ((struct htimeout_s*)io->keepalive_timer)->timeout = io->keepalive_timeout - inactive_ms;
         htimer_reset(io->keepalive_timer);