Skip to content

Commit 3621cfd

Browse files
committed
change min_index
1 parent 67922b9 commit 3621cfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod tcp_backend;
2020
mod tls_server;
2121
mod udp_backend;
2222

23-
const MIN_INDEX: usize = 3;
23+
const MIN_INDEX: usize = 2;
2424
const MAX_INDEX: usize = usize::MAX / CHANNEL_CNT;
2525
const CHANNEL_CNT: usize = 2;
2626
const CHANNEL_PROXY: usize = 0;

src/server/tls_server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)