[PR #10813] api: improve HTTP client security configuration #13373

Open
opened 2026-04-13 00:25:17 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10813

State: open
Merged: No


This changes Ollama to use more secure and robust HTTP client configurations in the API package. The changes include:

  • Improved timeout configurations for better reliability
  • Enhanced transport security settings
  • Better connection pooling management
  • More robust HTTP/2 handling
  • Improved keep-alive and compression settings

The changes follow Go best practices for HTTP client configuration and improve the overall robustness of the API client.

Testing:
I have:

  • Updated existing tests to use the new client configuration
  • Verified all tests pass with the new settings
  • Tested the changes with various network conditions
  • Ensured backward compatibility is maintained

Documentation:
I have:

  • Added clear comments explaining the configuration choices
  • Updated package documentation to reflect security considerations
  • Added inline documentation for timeout values and their purposes
**Original Pull Request:** https://github.com/ollama/ollama/pull/10813 **State:** open **Merged:** No --- This changes Ollama to use more secure and robust HTTP client configurations in the API package. The changes include: - Improved timeout configurations for better reliability - Enhanced transport security settings - Better connection pooling management - More robust HTTP/2 handling - Improved keep-alive and compression settings The changes follow Go best practices for HTTP client configuration and improve the overall robustness of the API client. **Testing:** I have: - Updated existing tests to use the new client configuration - Verified all tests pass with the new settings - Tested the changes with various network conditions - Ensured backward compatibility is maintained **Documentation:** I have: - Added clear comments explaining the configuration choices - Updated package documentation to reflect security considerations - Added inline documentation for timeout values and their purposes
GiteaMirror added the pull-request label 2026-04-13 00:25:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13373