?

Log in

No account? Create an account
brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

HTTP/1.1 proxying [May. 20th, 2004|11:44 pm]
Brad Fitzpatrick
This HTTP/1.1 proxying is fun.

I made myself a little table for the different cases and my game plan:

              HTTP/1.0   HTTP/1.1
Default Conn  close      keep-alive
Chunked?      no         yes
Pipelining?   no         yes

Do only 1.1 connections to the backend nodes.

Client sends Perlbal gets          Send via   Find end via
------------ --------------------- ---------- -------------
1.0 request  1.1 response (w/len)  dumb copy  count bytes
1.0 request  1.1 response (chunk)  dechunk    watch chunks
1.1 request  1.1 response (w/len)  dumb copy  count bytes
1.1 request  1.1 response (chunk)  dumb copy  watch chunks

I figure the only CPU-heavy case will be 1.0 requests (rare) to chunked replies (rare), so that's really rare, and I don't need to optimize for it... I just need to do it correctly, which is a lot easier.
LinkReply

Comments:
[User Picture]From: ho_se
2004-05-22 12:55 am (UTC)

orgeon

dude u live in orgean okay what the hell... no one lives in orgeon any more... okay.. thats right ppl in LA dont do Orgeonisms ya thats not orgasmic
(Reply) (Thread)
[User Picture]From: brad
2004-05-22 01:04 am (UTC)

Re: orgeon

Fascinating.
(Reply) (Parent) (Thread)
[User Picture]From: patrick
2004-05-22 03:10 am (UTC)

Re: orgeon

I'm in love with you and I want to have 10,000 babies with you.

(was that creepy? I didn't mean it to be)
(Reply) (Parent) (Thread)
From: csnowx
2004-05-22 04:46 am (UTC)

Re: orgeon

Not at all, I think you had her at, "I'm."
(Reply) (Parent) (Thread)