Skip to content

Commit 2c77558

Browse files
more logs, openssl var
1 parent ac1655f commit 2c77558

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,7 @@ tasks:
12931293
- MONGODB_URI
12941294
- DRIVERS_TOOLS
12951295
- PYTHON3
1296+
- OPENSSL
12961297

12971298
#############
12981299
# Functions #

.evergreen/run-socks5-proxy-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if [ "$OPENSSL" = true ]; then
1212
FEATURE_FLAGS+=("openssl-tls")
1313
fi
1414

15+
echo $MONGODB_URI
16+
1517
# with auth
1618
$PYTHON3 $DRIVERS_TOOLS/.evergreen/socks5srv.py --port 1080 --auth "username:p4ssw0rd" --map "localhost:12345 to localhost:27017" &
1719
AUTH_PID=$!

src/runtime/tls_openssl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ pub(super) async fn tls_connect<T: AsyncRead + AsyncWrite + Unpin>(
4545
tcp_stream: T,
4646
cfg: &TlsConfig,
4747
) -> Result<TlsStream<T>> {
48-
dbg!("tls connecting (openssl)");
48+
#[cfg(test)]
49+
crate::test::log_uncaptured("tls connecting (openssl)");
4950
let mut stream = make_ssl_stream(host, tcp_stream, cfg).map_err(|err| {
5051
Error::from(ErrorKind::InvalidTlsConfig {
5152
message: err.to_string(),

src/runtime/tls_rustls.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ pub(super) async fn tls_connect<T: AsyncRead + AsyncWrite + Unpin>(
4747
tcp_stream: T,
4848
cfg: &TlsConfig,
4949
) -> Result<TlsStream<T>> {
50-
dbg!("tls connecting (rustls)");
50+
#[cfg(test)]
51+
crate::test::log_uncaptured("tls connecting (rustls)");
5152
let name = ServerName::try_from(host)
5253
.map_err(|e| ErrorKind::DnsResolve {
5354
message: format!("could not resolve {host:?}: {e}"),

src/test/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@ async fn socks5_proxy() {
10511051
} else {
10521052
String::new()
10531053
};
1054+
crate::test::log_uncaptured(format!("tls: {}", &tls));
10541055

10551056
// fast_socks5 parses "localhost" into an IPV6 address, which is not accepted by the mock server
10561057
// used by the tests

0 commit comments

Comments
 (0)