rfminelli / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
GNU General Public License v2.0
0 stars 0 forks source link

httpReadReply: Unexpected reply body data from "GET http://www.facebook.com/home.php" on random #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Just visit facebook with your account or other peoples profile
2.If Unexpected shows up... facebook page blank and sometimes needs to 
reload 5 times.
3.tested under squid2.7 same issue

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
lusca r14302 freebsd7.2 i386

Please provide any additional information below.
by adding some debug codes @http.c
len is always 1138, chunk size is zero chuck flag is zero
facebook always reply Transfer-Encoding chunked

workaround ... @squid.conf
acl facebook req_header Host www.facebook.com
header_access Accept-Encoding deny facebook
this will tell the facebook.com that the client doesn't support encoding.
disadvantage ... size from 30KB will became 129KB

Original issue reported on code.google.com by chudy.fernandez on 30 Sep 2009 at 10:53

GoogleCodeExporter commented 8 years ago
ops workaround wont work either. Its really random. now you see soon you won't

Original comment by chudy.fernandez on 30 Sep 2009 at 12:00

GoogleCodeExporter commented 8 years ago
Maybe facebook having issues on their cluster? They have problems quite often 
this
days... also they have very strange DDoS protection system, that block requests 
with
too long headers (i had to cut off Via:  and X-Forwarded-For headers!)

Original comment by nuclear...@gmail.com on 30 Sep 2009 at 2:14

GoogleCodeExporter commented 8 years ago
Not only facebook but contents that has Transfer-Encoding: chunked header
and some with Content-Encoding: gzip header

http://sugg.search.yahoo.net/sg/?output=fxjsonp&nresults=10&command=RNA%20from%2
0yeas
http://images.friendster.com/200909A-019/css/app_styles_profile.css

Original comment by chudy.fernandez on 30 Sep 2009 at 5:32

GoogleCodeExporter commented 8 years ago
client req http1.1 -> squid req http1.0 -> facebook
facebook rep http1.1 -> squid rep http1.0 -> client

server_http11 solve the problem

Original comment by chudy.fernandez on 1 Oct 2009 at 4:09

GoogleCodeExporter commented 8 years ago
Hm, I don't have that particular problem here. I'd love to see the full request 
and reply headers there.

How long are your Via/XFF headers exactly? :)

Original comment by adrian.c...@gmail.com on 2 Oct 2009 at 3:53

GoogleCodeExporter commented 8 years ago
Are you seeing it now? I've been told by facebook devs that they've found and 
fixed
bugs in their code.

Original comment by adrian.c...@gmail.com on 15 Oct 2009 at 10:20

GoogleCodeExporter commented 8 years ago
Nice. I've removed the http11 and so far its fine.

Original comment by chudy.fernandez on 17 Oct 2009 at 6:36

GoogleCodeExporter commented 8 years ago

Original comment by adrian.c...@gmail.com on 18 Oct 2009 at 3:21