[AWS] AWS.Server.Push Preventing lockups?

Joseph Montanez jmontanez at gorilla3d.com
Mon Aug 8 02:10:05 CEST 2011


Seems I was able to figure it out. I ended up removing the Send() from
inside the accept, to being outside. The timeout never happens, not
sure why. However it can now drop and accept at extremely fast rates
without locking.

On Sun, Aug 7, 2011 at 12:38 AM, Joseph Montanez
<jmontanez at gorilla3d.com> wrote:
> If I use Send_To and try to send to a disconnected client, my task
> locks up. This is also true when the server has a high load of fickle
> clients or when you have a client with a bad disconnect. This is
> probably more of an Ada problem then AWS, but I am not sure how to
> solve this. My guess would be, to add a SELECT to allow a timeout,
> which I tried but it didn't seem to work. In the end I would like the
> prevent aws from becoming locked.
>
> The code I am using is based on the WS demo and my modified code is
> located at https://github.com/gorilla3d/ada-comet-chat
>
> I've been using wget to open the connections to the push server. While
> they all spawn (using mash.sh) and then using killall -9 wget to get
> the server to lockup.
>
> --
> Joseph Montanez
> Web Developer
> Gorilla3D
> Design, Develop, Deploy
>



-- 
Joseph Montanez
Web Developer
Gorilla3D
Design, Develop, Deploy


More information about the AWS mailing list