Skip to content

Proxy fix#4197

Open
rasapala wants to merge 2 commits into
releases/2026/1from
proxy_fix
Open

Proxy fix#4197
rasapala wants to merge 2 commits into
releases/2026/1from
proxy_fix

Conversation

@rasapala
Copy link
Copy Markdown
Collaborator

🛠 Summary

Proxy test fix.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Proxy Issue #4172
Detect if proxy is set - norma path
Proxy not set - test timeout on HF_ENDPOINT

Fix sporadic Windows segfault in loadModel with numeric plugin config
Root cause fix: openvinotoolkit/openvino#35714

OVMS passes plugin_config_t (std::map<std::string, ov::Any>) to
compile_model, but ov::Any values for numeric properties like
NUM_STREAMS
can carry either int64_t or std::string depending on the code path.
OpenVINO's CPU plugin unconditionally calls val.as<std::string>() on all
properties, triggering an unsafe iostream conversion when the value is
numeric — causing sporadic memory corruption and segfault on Windows.

Add a typed normalization table in prepareDefaultPluginConfig that
converts
known numeric/bool properties (NUM_STREAMS, INFERENCE_NUM_THREADS,
AUTO_BATCH_TIMEOUT, ENABLE_CPU_PINNING) from string to their native type
before compile_model is called. String-typed properties like
PERFORMANCE_HINT
are untouched. Normalization also recurses into nested DEVICE_PROPERTIES
maps.

- [ ] Unit tests added.
- [ ] The documentation updated.
- [ ] Change follows security best practices.
``
Copilot AI review requested due to automatic review settings May 11, 2026 09:11
@rasapala rasapala changed the base branch from main to releases/2026/1 May 11, 2026 09:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rasapala rasapala requested a review from dtrawins May 12, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants