Skip to content

Commit

Permalink
change min_index
Browse files Browse the repository at this point in the history
  • Loading branch information
lazytiger committed May 26, 2021
1 parent 67922b9 commit 3621cfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod tcp_backend;
mod tls_server;
mod udp_backend;

const MIN_INDEX: usize = 3;
const MIN_INDEX: usize = 2;
const MAX_INDEX: usize = usize::MAX / CHANNEL_CNT;
const CHANNEL_CNT: usize = 2;
const CHANNEL_PROXY: usize = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/server/tls_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl TlsServer {
TlsServer {
listener,
config,
next_id: 2,
next_id: MIN_INDEX,
conns: HashMap::new(),
}
}
Expand Down Expand Up @@ -127,7 +127,7 @@ impl TlsServer {
log::debug!("connection:{} closed, remove from pool", index);
}
} else {
log::error!("connection:{} not found", index);
log::error!("connection:{} not found to do event", index);
}
}

Expand All @@ -148,7 +148,7 @@ impl TlsServer {
log::debug!("connection:{} closed, remove from pool", index);
}
} else {
log::error!("connection:{} not found", index);
log::error!("connection:{} not found to do resolve", index);
}
}

Expand Down

0 comments on commit 3621cfd

Please sign in to comment.