@@ -59,6 +59,8 @@ def setup(name, bran, adminPort, bootPort, base='', httpPort=None, configFile=No
59
59
'signify-resource' , 'signify-timestamp' ]))
60
60
61
61
bootServer = createHttpServer (bootPort , bootApp , keypath , certpath , cafilepath )
62
+ if not bootServer .reopen ():
63
+ raise RuntimeError (f"cannot create boot http server on port { bootPort } " )
62
64
bootServerDoer = http .ServerDoer (server = bootServer )
63
65
bootEnd = BootEnd (agency )
64
66
bootApp .add_route ("/boot" , bootEnd )
@@ -77,6 +79,8 @@ def setup(name, bran, adminPort, bootPort, base='', httpPort=None, configFile=No
77
79
app .resp_options .media_handlers .update (media .Handlers ())
78
80
79
81
adminServer = createHttpServer (adminPort , app , keypath , certpath , cafilepath )
82
+ if not adminServer .reopen ():
83
+ raise RuntimeError (f"cannot create admin http server on port { adminPort } " )
80
84
adminServerDoer = http .ServerDoer (server = adminServer )
81
85
82
86
doers = [agency , bootServerDoer , adminServerDoer ]
@@ -100,6 +104,8 @@ def setup(name, bran, adminPort, bootPort, base='', httpPort=None, configFile=No
100
104
indirecting .loadEnds (agency = agency , app = happ )
101
105
102
106
server = createHttpServer (httpPort , happ , keypath , certpath , cafilepath )
107
+ if not server .reopen ():
108
+ raise RuntimeError (f"cannot create local http server on port { httpPort } " )
103
109
httpServerDoer = http .ServerDoer (server = server )
104
110
doers .append (httpServerDoer )
105
111
0 commit comments