Project

General

Profile

Bug #27065

Global http proxy does not work with Net::HTTP

Added by Lukas Zapletal about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Network
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

In #20201 we have implemented global HTTP proxy setting with monkey patches to Net:HTTP (and others). It does not work according to my testing. Example:

Net::HTTP.start(uri.host, uri.port) do |http|
  http.request(...)
end

The thing is that method `start` actually opens connection already which fails on networks which don't have route to the destination and method `request` will never be called as the application (or main request) errors out.


Related issues

Related to Foreman - Feature #20201: Global HTTP proxy for outgoing requestsClosed

History

#1 Updated by Lukas Zapletal about 1 year ago

  • Related to Feature #20201: Global HTTP proxy for outgoing requests added

Also available in: Atom PDF