Project

General

Profile

Actions

Bug #27065

open

Global http proxy does not work with Net::HTTP

Added by Lukas Zapletal over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Network
Target version:
-
Difficulty:
Triaged:
Yes
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 1 (0 open1 closed)

Related to Foreman - Feature #20201: Global HTTP proxy for outgoing requestsClosedSebastian GräßlActions
Actions #1

Updated by Lukas Zapletal over 5 years ago

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

Also available in: Atom PDF