File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77## Unreleased
88
99- Fix pool timeout to account for the total time spent retrying. (#823 )
10+ - Fix synchronous TLS-in-TLS streams. (#840 )
1011
1112## 1.0.0 (October 6th, 2023)
1213
Original file line number Diff line number Diff line change @@ -145,12 +145,6 @@ def start_tls(
145145 server_hostname : typing .Optional [str ] = None ,
146146 timeout : typing .Optional [float ] = None ,
147147 ) -> NetworkStream :
148- if isinstance (self ._sock , ssl .SSLSocket ): # pragma: no cover
149- raise RuntimeError (
150- "Attempted to add a TLS layer on top of the existing "
151- "TLS stream, which is not supported by httpcore package"
152- )
153-
154148 exc_map : ExceptionMapping = {
155149 socket .timeout : ConnectTimeout ,
156150 OSError : ConnectError ,
You can’t perform that action at this time.
0 commit comments