Re: [squid-users] persistent http with pushback

From: Squid Support (Henrik Nordstrom) <hno@dont-contact.us>
Date: Wed, 20 Feb 2002 13:06:33 +0100

Sorry, I am not sure I understand what you are doing here or exacly
when you are getting problems. Are you saying that you cannot succeed
in getthing these replies at all back via Squid, or that it does not
work to keep the connection persistent for a second request?

What I can tell is that the reply headers you have shown can't keep a
HTTP/1.0+ persistent connection, and will be closed when the reply is
finished. HTTP/1.0+ persistent connections require a Content-length
reply header. (HTTP/1.1 has a mode where you can keep connections
persistent without the need of Content-length, but Squid is not yet
HTTP/1.1 and neither is your reply)

Regards
Henrik Nordström
Squid Developer

On Wednesday 20 February 2002 10:53, Marcel Ruff wrote:
> Hi,
>
>
> My problem is as follows:
>
>
> client --- squid ----- server
>
>
> I open a scoket connection from client to proxy, with a
>
> POST http://server ...
>
> this works fine.
>
> 1) Now i can send through this socket many request (works fine).
>
> 2) Then i tried to send a request and push many data packages
> back to the client (works fine).
>
> Now i try to do 1) and 2) simultaneously, but the proxy
> kicks me off (the code works fine without proxy).
> To be more precise, i believe the socket connection is
> still there, but the data written to the socket is not
> reaching the counterpart.
>
> This is not timeout related as the test runs through in some
> milliseconds.
>
>
>
> Now my question:
>
> Is there any trick that proxies allow what i want
> to do (setting some strange http header etc.)?
>
> Can i dump more info with squid to find out
> why the pushed message suddenly does not reach the
> destination?
>
>
> thanks,
>
> Marcel
>
>
> Some code:
>
> ------------ The request header ----------------------
> Receiving HTTP request
> POST / HTTP/1.0
> From: xx@yy.com
> Receiving HTTP request
> User-Agent: HTTP xmlBlaster/1.0
> Receiving HTTP request
> Pragma: no-cache
> Content-Type: text/plain
> Content-Length: 16
> Via: 1.1 develop.ruff.de:3128 (Squid/2.4.STABLE2)
> X-Forwarded-For: 192.168.1.2
> Host: 192.168.1.2:8080
> Cache-Control: no-cache, max-age=259200
> Connection: keep-alive
>
> -------------------------------------------
>
>
> ------------ The sent callback header ----------
> HTTP/1.1 200 OK
> Server: HTTP xmlBlaster server/1.0
> Cache-Control: no-cache
> Pragma: no-cache
> Connection: Keep-Alive
> Keep-Alive: 30000000
> Content-Type: multipart/x-mixed-replace;boundary=End
>
> -------------------------------------------
>
>
> ----------- The received callback header -----
> Receiving HTTP request
> HTTP/1.1 200 OK
> Receiving HTTP request
> Server: HTTP xmlBlaster server/1.0
> Cache-Control: no-cache
> Receiving HTTP request
> Pragma: no-cache
> Connection: Keep-Alive
> Keep-Alive: 30000000
> Content-Type: multipart/x-mixed-replace;boundary=End
>
> -------------------------------------------

-- 
MARA Systems AB, Giving you basic free Squid support
Customized solutions, packaged solutions and priority support
available on request
Received on Wed Feb 20 2002 - 05:26:59 MST

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