mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
trival
This commit is contained in:
parent
00bc3453e2
commit
cea566f187
2
common.h
2
common.h
@ -49,7 +49,7 @@
|
||||
#include<unordered_map>
|
||||
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;
|
||||
|
4
main.cpp
4
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user