| 363 | } |
| 364 | |
| 365 | static int agent_worker_effective_ctx_size(const agent_worker *w) { |
| 366 | int ctx = 0; |
| 367 | if (w && w->session) ctx = ds4_session_ctx(w->session); |
| 368 | if (ctx <= 0 && w && w->cfg) ctx = w->cfg->gen.ctx_size; |
| 369 | return ctx; |
| 370 | } |
| 371 | |
| 372 | /* ============================================================================ |
| 373 | * Small Utilities And Command-Line Parsing |
| 374 | * ============================================================================ |
| 375 | */ |
no outgoing calls
no test coverage detected