Skip to content

Commit

Permalink
Update xkcp_util.c
Browse files Browse the repository at this point in the history
  • Loading branch information
liudf0716 authored May 5, 2017
1 parent c0d1556 commit 4fda28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xkcp_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ void *xkcp_tcp_event_cb(struct bufferevent *bev, short what, struct xkcp_task *t

void xkcp_tcp_read_cb(struct bufferevent *bev, ikcpcb *kcp)
{
char buf[1024] = {0};
char buf[1500] = {0};
int len, nret;
struct evbuffer *input = bufferevent_get_input(bev);
while ((len = evbuffer_remove(input, buf, sizeof(buf))) > 0) {
nret = ikcp_send(kcp, buf, len);
debug(LOG_INFO, "xkcp_tcp_read_cb : conv [%d] read data from client [%d] len [%d] ikcp_send [%d]",
kcp->conv, bufferevent_getfd(bev), len, nret);
memset(buf, 0, 1024);
memset(buf, 0, 1500);
}

}
Expand Down

0 comments on commit 4fda28a

Please sign in to comment.