File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ source .evergreen/cargo-test.sh
88FEATURE_FLAGS+=(" socks5-proxy" )
99CARGO_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" &
1317AUTH_PID=$!
Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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}" ) ,
You can’t perform that action at this time.
0 commit comments