From: Igor G. <ig...@go...> - 2007-08-21 11:34:05
|
Hello. yaws_revproxy.erl didn't work properly with upstream's unspecified content lenght: =ERROR REPORT==== 21-Aug-2007::14:51:32 === Yaws process died: {function_clause, [{prim_inet,recv0,[#Port<0.141>,undefined,30000]}, {yaws_revproxy,ploop,3}, {yaws_server,aloop,3}, {yaws_server,acceptor0,2}, {proc_lib,init_p,5}]} Here is a tiny patch which fixes a bug. ========== --- yaws_revproxy.erl.old 2006-03-10 00:58:10.000000000 +0300 +++ yaws_revproxy.erl 2007-08-21 15:22:18.000000000 +0400 @@ -182,7 +182,7 @@ undefined when Psock#psock.type == client -> Psock#psock{mode = expectheaders, state = undefined}; undefined when Psock#psock.type == server -> - Psock#psock{mode = undefined, state = undefined} + Psock#psock{mode = undefined, state = 0} end; Int when integer(Int) -> Psock#psock{mode = len, ========== -- Igor Goryachev E-Mail/Jabber: ig...@go... |