Browse Source

update timer interval

pull/4/merge
Max Lv 11 years ago
parent
commit
f45103cccb
1 changed files with 1 additions and 1 deletions
  1. 2
      src/server.c

2
src/server.c

@ -559,7 +559,7 @@ struct server* new_server(int fd) {
server->fd = fd;
ev_io_init(&server->recv_ctx->io, server_recv_cb, fd, EV_READ);
ev_io_init(&server->send_ctx->io, server_send_cb, fd, EV_WRITE);
ev_timer_init(&server->recv_ctx->watcher, server_resolve_cb, 0.5, 1.0);
ev_timer_init(&server->recv_ctx->watcher, server_resolve_cb, 0.2, 0.5);
server->recv_ctx->server = server;
server->recv_ctx->connected = 0;
server->send_ctx->server = server;

Loading…
Cancel
Save