File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ mod tcp_backend;
2020mod tls_server;
2121mod udp_backend;
2222
23- const MIN_INDEX : usize = 3 ;
23+ const MIN_INDEX : usize = 2 ;
2424const MAX_INDEX : usize = usize:: MAX / CHANNEL_CNT ;
2525const CHANNEL_CNT : usize = 2 ;
2626const CHANNEL_PROXY : usize = 0 ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl TlsServer {
4848 TlsServer {
4949 listener,
5050 config,
51- next_id : 2 ,
51+ next_id : MIN_INDEX ,
5252 conns : HashMap :: new ( ) ,
5353 }
5454 }
@@ -127,7 +127,7 @@ impl TlsServer {
127127 log:: debug!( "connection:{} closed, remove from pool" , index) ;
128128 }
129129 } else {
130- log:: error!( "connection:{} not found" , index) ;
130+ log:: error!( "connection:{} not found to do event " , index) ;
131131 }
132132 }
133133
@@ -148,7 +148,7 @@ impl TlsServer {
148148 log:: debug!( "connection:{} closed, remove from pool" , index) ;
149149 }
150150 } else {
151- log:: error!( "connection:{} not found" , index) ;
151+ log:: error!( "connection:{} not found to do resolve " , index) ;
152152 }
153153 }
154154
You can’t perform that action at this time.
0 commit comments