Browse Source

properly set recv_ctx->connected

pull/1692/head
Vladimir Olteanu 7 years ago
committed by Max Lv
parent
commit
82694c8f19
4 changed files with 4 additions and 4 deletions
  1. 2
      src/local.c
  2. 2
      src/redir.c
  3. 2
      src/server.c
  4. 2
      src/tunnel.c

2
src/local.c

@ -955,8 +955,8 @@ remote_recv_cb(EV_P_ ev_io *w, int revents)
int opt = 0; int opt = 0;
setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
remote->recv_ctx->connected = 1;
} }
remote->recv_ctx->connected = 1;
} }
static void static void

2
src/redir.c

@ -442,8 +442,8 @@ remote_recv_cb(EV_P_ ev_io *w, int revents)
int opt = 0; int opt = 0;
setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
remote->recv_ctx->connected = 1;
} }
remote->recv_ctx->connected = 1;
} }
static void static void

2
src/server.c

@ -1147,8 +1147,8 @@ remote_recv_cb(EV_P_ ev_io *w, int revents)
int opt = 0; int opt = 0;
setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
remote->recv_ctx->connected = 1;
} }
remote->recv_ctx->connected = 1;
} }
static void static void

2
src/tunnel.c

@ -382,8 +382,8 @@ remote_recv_cb(EV_P_ ev_io *w, int revents)
int opt = 0; int opt = 0;
setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(server->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt)); setsockopt(remote->fd, SOL_TCP, TCP_NODELAY, &opt, sizeof(opt));
remote->recv_ctx->connected = 1;
} }
remote->recv_ctx->connected = 1;
} }
static void static void

Loading…
Cancel
Save