Repository navigation
Commit 8ec551a
fix: validate connection string before starting the broker process
Addresses review feedback on #1245. In mean_time_recover_with_docker.py the
environment check sat after process_docker.start() and a five second sleep, so
an unset IOTHUB_DEVICE_CONNECTION_STRING raised only once the container restart
experiment was already running, leaving the parent waiting on a live non-daemon
child. The check now runs first thing in main(), before the certificate is read
and before any process is spawned, so the script fails immediately with the
clear error.
simple_send_message.py already validated before any side effect and is
unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f8e0a9a commit 8ec551a
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| |||
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments