| Author |
Message |
< Yaws mailing list ~ Yaws process died: {function_clause - yaws-1.80 |
| Guest |
Posted: Wed Aug 04, 2010 6:32 am |
|
|
|
Guest
|
I have a "http" "proxy" in yaws that uses ibrowse to forward the request
RESPONSE = case {DoPost,string:to_lower(string:sub_string(URL, 1, 5))}
of
{false,"https"} -> ibrowse:send_req(URL ++ "?" ++ QUERY,[], get ,
[],[{is_ssl,true},{ssl_options,[]}]);
{false,"http:"} -> ibrowse:send_req(URL ++ "?" ++ QUERY,[], get);
{true,"http:"} -> ibrowse:send_req(URL,[{"Content-Type",
"application/x-www-form-urlencoded"}],
post,QUERY);
{true,"https"} -> ibrowse:send_req(URL,[{"Content-Type",
"application/x-www-form-urlencoded"}],
post,QUERY,[{is_ssl,true},{ssl_options,[]}])
end,
If I forward the request to another erlany yawsserver on a laptop it runs @
80 to 130 tps without any problems.
However if I forward the requests to a php page via apache that just 3 small
if's and eco part of the request.
I get this error at +- 15tps
{error,{'EXIT',{normal, {gen_server,
call,[<0.21939.1>,{send_req,{{url,"http://domain/ussdfake.php?msisdn=2782030
4143&sessionid=918737119&phase=1&type=3&request=0&networkid=1\",\"domain\",
80,undefined, undefined,
\"/ussdfake.php?msisdn=27820304143&sessionid=918737119&phase=1&type=3&reques
t=0&networkid=1\", http},
[],[],[], 30000}}, 30100]}}}}"
And in my report.log I get
=ERROR REPORT==== 3-Aug-2010::12:22:07 ===
Yaws process died: {function_clause,
[{yaws_server,binary_size,[0,request_time_out]},
{yaws_server,binary_size,2},
{yaws_server,deliver_accumulated,5},
{yaws_server,finish_up_dyn_file,2},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p_do_apply,3}]}
Any suggestions or help will be appreciated
Johan
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| chandru.m |
Posted: Wed Aug 04, 2010 9:47 am |
|
|
|
User
Joined: 24 Oct 2007
Posts: 85
|
On 4 August 2010 07:04, Johan de Bruin <johan.debruin@cellfind.co.za (johan.debruin@cellfind.co.za)> wrote:
Quote: I have a "http" "proxy" in yaws that uses ibrowse to forward the request
|
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 04, 2010 7:18 pm |
|
|
|
Guest
|
On 08/04/2010 08:04 AM, Johan de Bruin wrote:
> =ERROR REPORT==== 3-Aug-2010::12:22:07 ===
> Yaws process died: {function_clause,
> [{yaws_server,binary_size,[0,request_time_out]},
> {yaws_server,binary_size,2},
> {yaws_server,deliver_accumulated,5},
> {yaws_server,finish_up_dyn_file,2},
> {yaws_server,aloop,3},
> {yaws_server,acceptor0,2},
> {proc_lib,init_p_do_apply,3}]}
>
> Any suggestions or help will be appreciated
Had a quick look at the code, and I have a really hard time to figure
out where the request_time_out atom comes from.
Unclear ... needs debugging
?
/klacke
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|