Mailinglist Archive: opensuse-buildservice (216 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] local obs behind a proxy
- From: John Beranek <john@xxxxxxxxxxxx>
- Date: Thu, 25 Mar 2010 17:31:01 +0000
- Message-id: <4BAB9DD5.9030506@xxxxxxxxxxxx>
On 25/03/10 17:24, John Beranek wrote:
The only thing from LWP that seems vaguely applicable is
Net::HTTP::NB[1] but that hardly provides much beneficial abstraction
over what you already have.
John.
[1] http://search.cpan.org/~gaas/libwww-perl-5.834/lib/Net/HTTP/NB.pm
--
John Beranek To generalise is to be an idiot.
http://redux.org.uk/ -- William Blake
On 25/03/10 17:13, Michael Schroeder wrote:
On Thu, Mar 25, 2010 at 04:59:12PM +0000, John Beranek wrote:
On 25/03/10 16:45, Marcus Hüwe wrote:
On 2010-03-24 14:33:01 +0100, Christian wrote:
I want to use the 'remoturl' feature. (added PRJ openSUSE.org)I just wrote a small patch which adds basic http proxy support to the
And my local obs is not able to connect to 'api.opensuse.org' directly.
Access to internet is only allowed via proxy (e.g. squid)
So is there a possibility to tell obs to use a '$http_proxy' ?
backend. To enable it add 'our $proxy = "http://<ip>:<port>";' to the
BSConfig.pm file. Afterwards all remoteurl requests will be sent to
proxy.
The current implementation doesn't support proxy-authorization yet
but it should be trivial to implement it (before concentrating on
those details I want to know if the current code is ok:) ).
Feedback, remarks, objections etc. are always welcome:)
Why not just 'use LWP::UserAgent'?
Because it's not event based? I.e. we can't do a big select() on
all file descriptors with it.
OK, that does seem to be a fundamental limitation then, I'll go back to
sleep...
The only thing from LWP that seems vaguely applicable is
Net::HTTP::NB[1] but that hardly provides much beneficial abstraction
over what you already have.
John.
[1] http://search.cpan.org/~gaas/libwww-perl-5.834/lib/Net/HTTP/NB.pm
--
John Beranek To generalise is to be an idiot.
http://redux.org.uk/ -- William Blake
| < Previous | Next > |