21 Dec 2010 22:51
Re: Multiple xml http request GET's
On Tue, Dec 21, 2010 at 12:07 PM, Michal D. <michal.dobrogost@...> wrote: > Hi, > > I'm trying to write a fairly simple AJAX multiplayer game in Yaws. I spawn > a seperate process to handle the server state across all clients. There are > two .yaws files, both called from JavaScript by xml http request objects via > GET. > > submit.yaws - query string holds a an action performed by the player > (affects state server, client ignores any response). > request.yaws - subscribes to state server modification notifications, then > wais for a message from the state server with the new state. > > The problem is that once submit.yaws is accessed a process dies (different > pid from processes handling submit.yaws or request.yaws). After this, the > request.yaws seems to hang and no new updates come in. The process that dies > shows up with the following message: > > =ERROR REPORT==== 21-Dec-2010::12:03:56 === > Yaws process died: {function_clause,[{yaws_server,binary_size,[0,<0.71.0>]}, > {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 hints on what's going on? I'm guessing you're giving Yaws some bad values to be returned as part of the response body from your .yaws code. Can you either post your .yaws code or send me a copy offline? --steve ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
RSS Feed