|
@@ -44,7 +44,7 @@ public:
|
|
|
{
|
|
|
m_thread_clts.reserve(2048);
|
|
|
m_timer.set<io_context,&io_context::on_timer>(this);
|
|
|
- m_timer.start(0,0.1);
|
|
|
+ m_timer.start(0,1);
|
|
|
}
|
|
|
|
|
|
virtual ~io_context()
|
|
@@ -61,7 +61,7 @@ public:
|
|
|
}
|
|
|
void on_timer()
|
|
|
{
|
|
|
- logn_info(1,"tick timer timeout.");
|
|
|
+// logn_info(1,"tick timer timeout.");
|
|
|
m_serv.on_timer();
|
|
|
}
|
|
|
void on_connect(const std::shared_ptr<client> &clt)
|
|
@@ -276,7 +276,7 @@ struct sock_client:fd_io,client_ex
|
|
|
{
|
|
|
return m_type;
|
|
|
}
|
|
|
- void set(int t)
|
|
|
+ void set_conn_type(int t)
|
|
|
{
|
|
|
m_type=t;
|
|
|
}
|