File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Unreleased
1212 quoted string values. :issue: `2907 `
1313- Debugger pin auth is synchronized across threads/processes when tracking
1414 failed entries. :issue: `2916 `
15+ - Dev server handles unexpected `SSLEOFError ` due to issue in Python < 3.13.
16+ :issue: `2926 `
1517
1618
1719Version 3.0.3
Original file line number Diff line number Diff line change 3737
3838try :
3939 import ssl
40+
41+ connection_dropped_errors : tuple [type [Exception ], ...] = (
42+ ConnectionError ,
43+ socket .timeout ,
44+ ssl .SSLEOFError ,
45+ )
4046except ImportError :
4147
4248 class _SslDummy :
@@ -47,6 +53,7 @@ def __getattr__(self, name: str) -> t.Any:
4753 )
4854
4955 ssl = _SslDummy () # type: ignore
56+ connection_dropped_errors = (ConnectionError , socket .timeout )
5057
5158_log_add_style = True
5259
@@ -361,7 +368,7 @@ def execute(app: WSGIApplication) -> None:
361368
362369 try :
363370 execute (self .server .app )
364- except ( ConnectionError , socket . timeout ) as e :
371+ except connection_dropped_errors as e :
365372 self .connection_dropped (e , environ )
366373 except Exception as e :
367374 if self .server .passthrough_errors :
You can’t perform that action at this time.
0 commit comments