Skip to content

Commit

Permalink
Update tcp_proxy.c
Browse files Browse the repository at this point in the history
  • Loading branch information
liudf0716 authored Apr 24, 2017
1 parent 54fe9f7 commit b0fa16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcp_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ tcp_proxy_accept_cb(struct evconnlistener *listener, evutil_socket_t fd,
{
struct xkcp_proxy_param *p = param;
struct bufferevent *b_in = NULL;
struct event_base *base = p->base;
struct event_base *base = evconnlistener_get_base(listener);

b_in = bufferevent_socket_new(base, fd,
BEV_OPT_CLOSE_ON_FREE|BEV_OPT_DEFER_CALLBACKS);
assert(b_in);

debug(LOG_INFO, "accept new client in");
debug(LOG_INFO, "accept new client in [%d]", fd);

static int conv = 1;
ikcpcb *kcp_client = ikcp_create(conv, param);
Expand Down

0 comments on commit b0fa16a

Please sign in to comment.