Skip to content

Commit ac1655f

Browse files
add evg with dbgs
1 parent 7838505 commit ac1655f

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.evergreen/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,27 @@ buildvariants:
407407
tasks:
408408
- test-socks5-proxy
409409

410+
- name: socks5-proxy-tls
411+
display_name: "SOCKS5 Proxy (TLS)"
412+
# patchable: false
413+
run_on:
414+
- rhel87-small
415+
expansions:
416+
SSL: ssl
417+
tasks:
418+
- test-socks5-proxy
419+
420+
- name: socks5-proxy-openssl
421+
display_name: "SOCKS5 Proxy (OpenSSL)"
422+
# patchable: false
423+
run_on:
424+
- rhel87-small
425+
expansions:
426+
SSL: ssl
427+
OPENSSL: true
428+
tasks:
429+
- test-socks5-proxy
430+
410431
#- name: graviton-legacy
411432
# display_name: "Graviton (legacy versions)"
412433
# run_on:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ source .evergreen/cargo-test.sh
88
FEATURE_FLAGS+=("socks5-proxy")
99
CARGO_OPTIONS+=("--ignore-default-filter")
1010

11+
if [ "$OPENSSL" = true ]; then
12+
FEATURE_FLAGS+=("openssl-tls")
13+
fi
14+
1115
# with auth
1216
$PYTHON3 $DRIVERS_TOOLS/.evergreen/socks5srv.py --port 1080 --auth "username:p4ssw0rd" --map "localhost:12345 to localhost:27017" &
1317
AUTH_PID=$!

src/runtime/tls_openssl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ 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)");
4849
let mut stream = make_ssl_stream(host, tcp_stream, cfg).map_err(|err| {
4950
Error::from(ErrorKind::InvalidTlsConfig {
5051
message: err.to_string(),

src/runtime/tls_rustls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ 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)");
5051
let name = ServerName::try_from(host)
5152
.map_err(|e| ErrorKind::DnsResolve {
5253
message: format!("could not resolve {host:?}: {e}"),

0 commit comments

Comments
 (0)