From cea566f187e93d37f8d9b344b171d505b3cf8a1d Mon Sep 17 00:00:00 2001 From: wangyu Date: Mon, 31 Jul 2017 13:26:07 +0800 Subject: [PATCH] trival --- common.h | 2 +- main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common.h b/common.h index aa24435..c214cfd 100644 --- a/common.h +++ b/common.h @@ -49,7 +49,7 @@ #include using namespace std; -const int max_data_len=800; +const int max_data_len=1600; const int buf_len=max_data_len+200; const uint32_t max_handshake_conn_num=10000; const uint32_t max_ready_conn_num=1000; diff --git a/main.cpp b/main.cpp index 57fc4f9..19b2369 100755 --- a/main.cpp +++ b/main.cpp @@ -1462,7 +1462,9 @@ int server_on_raw_ready(conn_info_t &conn_info) mylog(log_debug,"[%s][hb]received hb \n",ip_port); conn_info.last_hb_recv_time = current_time_rough; return 0; - } else if (data[0] == 'd' && data_len >=int( sizeof(uint32_t) + 1)) { + } else if (data[0] == 'd' && data_len >=int( sizeof(uint32_t) + 1)) + { + uint32_t tmp_conv_id = ntohl(*((uint32_t *) &data[1])); conn_info.last_hb_recv_time = current_time_rough;