I guess that would be the best solution for you if websocket doesn't help. Since it's a feature of ape I guess it's intended to send this list to everyone. It is a useful feature to built userlist when you don't want to keep track of connection/de connection
Envoyé de mon iPhone > Le 2013-10-03 à 11:30, Yaron Kufert <[email protected]> a écrit : > > I think i found out how to remove the users list sending upon user connection: > before executing build.sh, in the file `channel.c`, in the function `join`, > I've marked the entire if that starts with > if (!(chan->flags & CHANNEL_NONINTERACTIVE)) > > I'm QAing it now to make sure it didn't affect anything important, but so far > everything looks good. before doing so, i started getting connection errors > while having 200 connections. now, after 1600 connection my load tool got > stuck :) > > many thanks for your help !!! > > Yaron > > >> On 3 October 2013 16:36, Yaron Kufert <[email protected]> wrote: >> Hi Louis, Thanks a lot ! this helps! >> >> I've tried to build over 64bit centOS 6.3 but it didn't work, i got >> "libmod_spidermonkey.so: undefined symbol: scramble" >> >> The MySQL packages i have are: >> >> [root@prov-test01 html]# rpm -qa | grep mysql >> mysql-server-5.5.28-3.el6.remi.x86_64 >> mysql-libs-5.5.28-3.el6.remi.x86_64 >> mysql-devel-5.5.28-3.el6.remi.x86_64 >> mysql-5.5.28-3.el6.remi.x86_64 >> >> But once I've tried to install on 32bit CentOS 6.4 the installation worked >> like a charm :) >> >> the bad news is that i'm back to square one - whenever a client connects he >> gets the list of all connected clients, which is big even if 200 users are >> connected... any chance to remove this? >> >> Thanks :) >> >> >>> On 2 October 2013 23:43, Louis Charette <[email protected]> wrote: >>> I hope this will help you. I just successfully built APE 1.1.2 on CentOS >>> 6.4 32 bits with MySQL support. Here's the steps I used, all using root: >>> >>> Install dependencies --> yum install gcc-c++ zip mysql-devel >>> Edit modules/Makefile in the APE folder you downloaded. You need to tell >>> APE where the MySQL lib are in CentOS >>> Remplace : >>> MYSQL_FLAGS = -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r >>> With: >>> MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib/mysql -I./deps/mysac/ -lmysac >>> -lmysqlclient_r >>> For 64 bits, it should be: >>> MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib64/mysql -I./deps/mysac/ -lmysac >>> -lmysqlclient_r >>> You can now build --> ./build.sh >>> >>> Thanks to >>> http://redrokk.com/2012/06/16/installing-ape-streaming-server-tutorial/ for >>> the edit tip. I had this error without it (and no MySQL) : >>> >>> /usr/bin/ld: cannot find -lmysqlclient_r >>> >>> >>> >>> Hope this will help you :-) >>> >>> - Louis >>> >>> >>>> Le 2013-10-02 à 08:58, Pablo Tejada <[email protected]> a écrit : >>>> >>>> Can you post a list of the mysql packages installed on your machine? >>>> >>>>> On Oct 2, 2013 7:49 AM, "Yaron Kufert" <[email protected]> wrote: >>>>> I am lost... >>>>> >>>>> I've installed version 1.1.2 from gitub and managed to build it >>>>> successfully, but the mysql connection fails: >>>>> >>>>> ./aped: symbol lookup error: ../modules/lib/libmod_spidermonkey.so: >>>>> undefined symbol: scramble >>>>> >>>>> >>>>>> On 1 October 2013 21:13, Pablo Tejada <[email protected]> wrote: >>>>>> Yeah, actually my host is running on centOS 6.x 64bit and can >>>>>> successfully build the apr server without problems. Male you have all >>>>>> the required dependencies like mysql-devel >>>>>> >>>>>> yum mysql mysql-devel >>>>>> >>>>>> Should do, but im not if your suppose to get an specific version. On my >>>>>> server it just works. >>>>>> >>>>>>> On Oct 1, 2013 1:33 PM, "Yaron Kufert" <[email protected]> wrote: >>>>>>> I've tried to build both versions over CentOS 5.8 32bit and got >>>>>>> "undefined reference to `scramble'", so i thought that it does not >>>>>>> support mysql . Have you manage to build it and use mysql? the gitub >>>>>>> version? >>>>>>> >>>>>>> have you tried using it on a 64bit machine? >>>>>>> >>>>>>> >>>>>>>> On 1 October 2013 14:33, Pablo Tejada <[email protected]> wrote: >>>>>>>> Try to upgrade to either 1.1.2 or 1.1.3-dev they both have MySQL >>>>>>>> support, just make sure to back your current build in case something >>>>>>>> goes wrong. >>>>>>>> >>>>>>>>> On Oct 1, 2013 2:53 AM, "Yaron Kufert" <[email protected]> wrote: >>>>>>>>> Hi, Thanks for the fast response, >>>>>>>>> >>>>>>>>> I am using version 1.01dev since i need the MySQL support, and yea, >>>>>>>>> the protocol is JSONP >>>>>>>>> >>>>>>>>>> On Tuesday, October 1, 2013 12:09:53 AM UTC+3, Yaron Kufert wrote: >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I am quite new to the APE project. I had issues when over 200 >>>>>>>>>> clients connected to the APE server. When the client connects to the >>>>>>>>>> server, it issues a "CONNECT", followed by a "joinChatRoom" call. On >>>>>>>>>> the server, the even handler for that call looks like this: >>>>>>>>>> >>>>>>>>>> Ape.registerCmd("joinChatRoom", true, function(params, infos) { >>>>>>>>>> var cr = params.chatRoomName; >>>>>>>>>> var chan = Ape.getChannelByName(cr); >>>>>>>>>> >>>>>>>>>> if (!$defined(chan)) { >>>>>>>>>> chan = Ape.mkChan(cr); >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> // This data structure stores all the information about the user. >>>>>>>>>> var userState = infos.user.getProperty("userState"); >>>>>>>>>> if (!userState) { >>>>>>>>>> userState = { >>>>>>>>>> credentials: { >>>>>>>>>> watchitoo: {}, >>>>>>>>>> twitter: {}, >>>>>>>>>> facebook: {}, >>>>>>>>>> guest: {} >>>>>>>>>> } >>>>>>>>>> }; >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> infos.user.setProperty("userState", userState); >>>>>>>>>> infos.user.join(cr); >>>>>>>>>> >>>>>>>>>> }); >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> the server answer looks like this: >>>>>>>>>> Ape.transport.read('[{"time":"1380574741","raw":"CHANNEL","data":{"users":[{"casttype":"uni","pubid":"294fa43b43c6b152333d7d255f5496a1","properties":{"userState":{"credentials":{"watchitoo":0,"twitter":0,"facebook":0,"guest":0}}},"level":1}],"pipe":{"casttype":"multi","pubid":"e70bff78a59dcb1524750a93cf7ce943","properties":{"name":"wqd040"}}}}]') >>>>>>>>>> >>>>>>>>>> or parsed: >>>>>>>>>> >>>>>>>>>> [ >>>>>>>>>> { >>>>>>>>>> "time":"1380574741", >>>>>>>>>> "raw":"CHANNEL", >>>>>>>>>> "data":{ >>>>>>>>>> "users":[ >>>>>>>>>> { >>>>>>>>>> "casttype":"uni", >>>>>>>>>> "pubid":"294fa43b43c6b152333d7d255f5496a1", >>>>>>>>>> "properties":{ >>>>>>>>>> "userState":{ >>>>>>>>>> "credentials":{ >>>>>>>>>> "watchitoo":0, >>>>>>>>>> "twitter":0, >>>>>>>>>> "facebook":0, >>>>>>>>>> "guest":0 >>>>>>>>>> } >>>>>>>>>> } >>>>>>>>>> }, >>>>>>>>>> "level":1 >>>>>>>>>> } >>>>>>>>>> ], >>>>>>>>>> "pipe":{ >>>>>>>>>> "casttype":"multi", >>>>>>>>>> "pubid":"e70bff78a59dcb1524750a93cf7ce943", >>>>>>>>>> "properties":{ >>>>>>>>>> "name":"wqd040" >>>>>>>>>> } >>>>>>>>>> } >>>>>>>>>> } >>>>>>>>>> } >>>>>>>>>> ] >>>>>>>>>> >>>>>>>>>> As you can see, the server send the list of all connected clients, >>>>>>>>>> How can i stop the server from sending this list? >>>>>>>>>> >>>>>>>>>> The problem is that once over 200 clients connected, the server >>>>>>>>>> sends a huge list of current users, and for some reason attach >>>>>>>>>> another response to it, looking something like: >>>>>>>>>> Ape.transport.read('......')Ape.transport.read('.....')Ape.transport.read('.......') >>>>>>>>>> >>>>>>>>>> which cause the the ape client to fail on Uncaught SyntaxError: >>>>>>>>>> Unexpected identifier , since it fails to execute the response. >>>>>>>>>> >>>>>>>>>> I would appreciate any help as I am really stuck... >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>> Groups "APE Project" group. >>>>>>>>> To post to this group, send email to [email protected] >>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>> [email protected] >>>>>>>>> For more options, visit this group at >>>>>>>>> http://groups.google.com/group/ape-project?hl=en >>>>>>>>> --- >>>>>>>>> APE Project (Ajax Push Engine) >>>>>>>>> Official website : http://www.ape-project.org/ >>>>>>>>> Git Hub : http://github.com/APE-Project/ >>>>>>>>> >>>>>>>>> --- >>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>> Groups "APE Project" group. >>>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>>> send an email to [email protected]. >>>>>>>>> >>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "APE Project" group. >>>>>>>> To post to this group, send email to [email protected] >>>>>>>> To unsubscribe from this group, send email to >>>>>>>> [email protected] >>>>>>>> For more options, visit this group at >>>>>>>> http://groups.google.com/group/ape-project?hl=en >>>>>>>> --- >>>>>>>> APE Project (Ajax Push Engine) >>>>>>>> Official website : http://www.ape-project.org/ >>>>>>>> Git Hub : http://github.com/APE-Project/ >>>>>>>> >>>>>>>> --- >>>>>>>> You received this message because you are subscribed to a topic in the >>>>>>>> Google Groups "APE Project" group. >>>>>>>> To unsubscribe from this topic, visit >>>>>>>> https://groups.google.com/d/topic/ape-project/qV_EG6RKPys/unsubscribe. >>>>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>>>> [email protected]. >>>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "APE Project" group. >>>>>>> To post to this group, send email to [email protected] >>>>>>> To unsubscribe from this group, send email to >>>>>>> [email protected] >>>>>>> For more options, visit this group at >>>>>>> http://groups.google.com/group/ape-project?hl=en >>>>>>> --- >>>>>>> APE Project (Ajax Push Engine) >>>>>>> Official website : http://www.ape-project.org/ >>>>>>> Git Hub : http://github.com/APE-Project/ >>>>>>> >>>>>>> --- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "APE Project" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>>>> an email to [email protected]. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>>> >>>>>> -- >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "APE Project" group. >>>>>> To post to this group, send email to [email protected] >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected] >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/ape-project?hl=en >>>>>> --- >>>>>> APE Project (Ajax Push Engine) >>>>>> Official website : http://www.ape-project.org/ >>>>>> Git Hub : http://github.com/APE-Project/ >>>>>> >>>>>> --- >>>>>> You received this message because you are subscribed to a topic in the >>>>>> Google Groups "APE Project" group. >>>>>> To unsubscribe from this topic, visit >>>>>> https://groups.google.com/d/topic/ape-project/qV_EG6RKPys/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>>> >>>>> -- >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "APE Project" group. >>>>> To post to this group, send email to [email protected] >>>>> To unsubscribe from this group, send email to >>>>> [email protected] >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/ape-project?hl=en >>>>> --- >>>>> APE Project (Ajax Push Engine) >>>>> Official website : http://www.ape-project.org/ >>>>> Git Hub : http://github.com/APE-Project/ >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "APE Project" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to [email protected]. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> -- >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "APE Project" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/ape-project?hl=en >>>> --- >>>> APE Project (Ajax Push Engine) >>>> Official website : http://www.ape-project.org/ >>>> Git Hub : http://github.com/APE-Project/ >>>> >>>> --- >>>> You received this message because you are subscribed to the Google Groups >>>> "APE Project" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to [email protected]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> -- >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "APE Project" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/ape-project?hl=en >>> --- >>> APE Project (Ajax Push Engine) >>> Official website : http://www.ape-project.org/ >>> Git Hub : http://github.com/APE-Project/ >>> >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "APE Project" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/ape-project/qV_EG6RKPys/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > > --- > You received this message because you are subscribed to the Google Groups > "APE Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/ --- You received this message because you are subscribed to the Google Groups "APE Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
