@@ -536,11 +536,11 @@ function sslconnection(::Type{SSLContext}, tcp::TCPSocket, host::AbstractString;
536
536
return io
537
537
end
538
538
539
- function sslupgrade (:: Type{IOType} , c:: Connection ,
539
+ function sslupgrade (:: Type{IOType} , c:: Connection{T} ,
540
540
host:: AbstractString ;
541
541
require_ssl_verification:: Bool = NetworkOptions. verify_host (host, " SSL" ),
542
542
readtimeout:: Int = 0 ,
543
- kw... ):: Connection{IOType} where {IOType}
543
+ kw... ):: Connection{IOType} where {T, IOType}
544
544
# initiate the upgrade to SSL
545
545
# if the upgrade fails, an error will be thrown and the original c will be closed
546
546
# in ConnectionRequest
@@ -554,7 +554,7 @@ function sslupgrade(::Type{IOType}, c::Connection,
554
554
# success, now we turn it into a new Connection
555
555
conn = Connection (host, " " , 0 , require_ssl_verification, tls)
556
556
# release the "old" one, but don't allow reuse since we're hijacking the socket
557
- release (getpool (IOType ), connectionkey (c), c; return_for_reuse= false )
557
+ release (getpool (T ), connectionkey (c), c; return_for_reuse= false )
558
558
# and return the new one
559
559
return acquire (getpool (IOType), connectionkey (conn), conn)
560
560
end
0 commit comments