Re: get "Operation already in progress" when trying to use squid with socks

From: Andre Albsmeier <Andre.Albsmeier@dont-contact.us>
Date: Thu, 7 Aug 1997 19:37:34 +0200 (CEST)

> Hi
>
> > since my squid lies inside our firewall, I have to configure the
> > proxy-server running on the firewall as my parent. This works
> > great so far. But for being able to forward https connections as
> > well, I tried to socksify squid using socks5. However, when connecting
>
> > ERROR
> >
> > The requested URL could not be retrieved
> >
> >
> > While trying to retrieve the URL: banking.hypo.de:443
> >
> > The following error was encountered:
> >
> > Connection Failed
> >
> > The system returned:
> >
> > (37) Operation already in progress
> >
> > This means that:
> >
> > The remote site or server may be down. Please try again soon.
> >
> >
> >
> > The socks5 package itself runs great but with squid I had no succes.
> > I socksified squid using the usual procedure: including socks.h,
> > defining SOCKS and linking with the socks5 library.
> >
> > Do you have an idea or any hint what I might be doing wrong?
> hmm - this error message means that your server is trying to connect
> directly to the remote server (ie not via socks). There is probably something
> wrong with the https source in squid so that it can't talk socks.

I have done some more research. Here are the outputs:

- in cache.log:

ERR_CONNECT_FAIL: banking.hypo.de:443

- in the sock-Server logfile:

Aug 7 19:22:30 curry Socks5[26428]: TCP Connection Request: Connect (curry.top.tld:2910 to banking.hypo.de:https) for user cache
Aug 7 19:22:30 curry Socks5[26428]: TCP Connection Established: Connect (curry.top.tld:2910 to banking.hypo.de:https) for user cache
Aug 7 19:22:30 curry Socks5[26428]: TCP Connection Terminated: Abnormal (curry.top.tld:2910 to banking.hypo.de:https) for user cache: 0 bytes out, 0 bytes in

- and the output of the socksified squid itself when running with SOCKS5_DEBUG:

26440: Check: Checking username, cache is in -
26440: Config file line #16 matched
26440: lsLibProtoExchg: Checking proxy cache for (192.168.1.10:1080)
26440: lsLibProtoExchg: Adding to proxy cache...
26440: lsLibProtoExchg: Connecting to socks server 192.168.1.10:1080
26440: lsLibProtoExchg: Connected to socks server
26440: GetUserName: name was cached...
26440: lsProtoExchg: dest is (194.112.82.29:443)
26440: lsProtoExchg: server asked us to do method #2
26440: lsProtoExchg: authentication done: ok
26440: lsSendRequest: dest is (194.112.82.29:443)
26440: lsSendRequest: request sent
26440: lsProtoExchg: done
26440: lsLibProtoExchg: Initial protocol exchanged
26440: lsTcpConnect: Protocol exchanged
26440: lsTcpConnect: connection was in progress
26440: lsTcpConnect: connection in progress - no data

The reason why I want to socksify squid is: I am behind a firewall and have no
direct contact to the outside world. However, on the firewall is running a
netscrape cache :-( and a socks server. Since https connections are done directly
by squid (which is not possible due to the firewall), I have to configure the browser
to connect to the socks server for https and to connect my squid for the rest. This
in fact results in that I have to enable each client in the socks5.conf file :-(.

I thought, by socksifying squid, I could let him make the https connections through
socks but had no luck.

Where can I start? Any pointers are welcome.

Thanks a lot

        -Andre
Received on Thu Aug 07 1997 - 10:43:37 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:03 MST