Commit d2a7cd6
committed
o2-sim: Improve communication between primary server and transport workers
More robust communication between primary servery and sim workers:
a) answer req-rep primary channel immediately (even if no work)
- avoid blocking in request handling
- also don't need to specify timeouts anymore
b) include server status information as header
- this may be used by workers to back-off/retry
This solves some stability issues with the sim-as-a-service.
The 2 examples SimAsService_basic / SimAsService_biasing1 now run
stably.1 parent d20cc82 commit d2a7cd6
9 files changed
Lines changed: 375 additions & 199 deletions
File tree
- run
- SimExamples
- SimAsService_basic
- SimAsService_biasing1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
184 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
185 | 195 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 196 | | |
191 | 197 | | |
192 | 198 | | |
| |||
0 commit comments