Re: [squid-users] Asyncronous squid ?

From: Adrian de los Santos <demon@dont-contact.us>
Date: Sun, 20 May 2001 17:26:06 -0500

> The protocol that defines most Squid operations on Web objects
> is HTTP (see RFC 2616). HTTP is connection oriented (like TCP), not
> message oriented (like UDP). There are no unique request IDs that can
> be shared with other caches/servers. An HTTP transaction is identified
> by connection:sequential_id "pair" (sort of).
>
> Thus, in general, you cannot send a request using one
> connection and receive a response on another connection. In theory,
> you can fake source addresses of the connection from B to C so that C
> thinks it is getting a request from A. DSR origin server load
> balancers work that way, but you do not want to do that in your
> environment.

Why not ?

Thats what i will like to do.. in fact i can put a couple of SNAT
rules on B so the packets arrive to C as if they came from A...

But The Squid process on the A machine dont expect any reply from
C it expects a reply from B... (or since you tell me there its nothing
on the TCP data which relates to the original connection, i mean there
its no ID on the tcp data, its on the http packet itself) there its any
workaround for this or im stuck ?

>
> >
> > 200.39.164.129
> > +---+
> > | A |<------------------+
> > +---+ |
> > | 192.168.1.241 |
> > | |
> > | |
> > | |
> > v 192.168.1.1 |
> > +---+ |
> > | B | |
> > +---+ |
> > | 148.235.170.1 |
> > | |
> > v |
> > +--------------------------+
> > |The Internet |
> > +--------------------------+
> > | |
> > v |
> > +-----+ |
> > | C |-----------------+
> > +-----+
> > Internet site (151.1.10.15)
> >

-- 
                               (\(\                    
                                OO +  _                
                              =(' = \/~)              
+----------------------------oOO----OOo-----------------------------+
Adrian de los Santos (aka: Demon) -  Linux, Unix Consultant
Cuautitlan Izcalli, Estado de Mexico, Mexico.
Email: demon@demon.com.mx, Phone: 58815312, Cel: 044-1-905-6767 
+-------------------------------------------------------------------+
--==**> Real Programmers Practice Safe HEX <**==--
---
GCS d- s: a- C++ UL++++$ UC++++$ US+++$ UB+++$ P+++>+++++ L++$>++++ 
E+ W++ N++ o K? w++ O M V PS PE Y+ PGP+ t- 5 X+ R- tv+ b+ DI++ D++ 
G+ e h+ r++ y+
===
Received on Mon May 21 2001 - 17:15:47 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:13 MST