Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-25 Thread Kunal Kulshrestha
Attached file has a serving thread. Below code has a new thread for pushing events in live connections and uses wakeup_server static int websocket_data_push(struct mg_connection *conn, enum mg_event ev) { OCCIF_DEBUG("inside websocket_data_push \n"); if ((ev == MG_POLL) && (NULL != conn->

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-24 Thread Sergey Lyubka
Hi Kunal, Joshi's mail has an example code which doesn't have mg_wakeup_server_ex() call. You however do mention mg_wakeup_server_ex(). I am confused - please clarify. Showing the code is the best way to go. On Wed, Sep 24, 2014 at 4:10 PM, kk wrote: > Hi Sergey, > > Thankful for your replies. I

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-24 Thread kk
Hi Sergey, Thankful for your replies. It is a proof of concept in which we chose mongoose to handle use-cases. We might extend the project and will look for more (commercial) support also. For now, it will be grateful whatever inputs we can get from you. The OS is linux and platform has opera a

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-24 Thread Sergey Lyubka
Ok, thanks. Could you clarify what OS you're running on? Note that you can avail for the commercial support if you'd like to get a guaranteed response and dedicated engineering time. Mailing list works too but it is at the bottom of the priority list to follow up on mailing list queries. On Wed,

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-24 Thread kk
Hi Sergey, Yes, She is working with me on this project where we want to support frequent incoming requests. Please let us know your ideas on this. Thanks, Kunal On Wednesday, September 24, 2014 2:10:27 AM UTC-4, Sergey Lyubka wrote: > > Hi Kunal, > Does this recent message seem relevant to the

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-23 Thread Sergey Lyubka
Hi Kunal, Does this recent message seem relevant to the issue you're seeing: https://groups.google.com/forum/#!topic/mongoose-users/NxNf_ST5y78 ? On Tue, Sep 23, 2014 at 8:06 PM, kk wrote: > Hi Sergey, > > Even after updating to latest mongoose version, I see the same issue i.e. > high frequenc

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-23 Thread kk
Hi Sergey, Even after updating to latest mongoose version, I see the same issue i.e. high frequency data communication makes the serving thread go in blocking state. I am looking for help. Please let me know if you have any questions. Regards, Kunal On Thursday, September 18, 2014 10:57:38 AM

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-18 Thread Sergey Lyubka
Ah, ok. Date timestamp was introduced by me recently, so just update to the recent version, just to be on the same page. On Thu, Sep 18, 2014 at 2:54 PM, kk wrote: > Hi Sergey, > > I do not find a date timestamp in my mongoose.c. Mongoose release notes > say the below: > > ## Release 5.4, July 2

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-18 Thread kk
Hi Sergey, I do not find a date timestamp in my mongoose.c. Mongoose release notes say the below: ## Release 5.4, July 28 2014 How should I find date and timestmap? Regards, Kunal On Thursday, September 18, 2014 4:25:22 AM UTC-4, Sergey Lyubka wrote: > > Hi Kunal, what is the $Date$ timestamp

Re: Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-18 Thread Sergey Lyubka
Hi Kunal, what is the $Date$ timestamp of your mongoose.c file? On Thu, Sep 18, 2014 at 12:28 AM, kk wrote: > Hi, > > I am working on an application in which I am using mg_wakeup_server API to > push data over websocket connection. As guided for Mongoose usage, I have a > poll_server in main thr

Using mongoose for heavy traffic on websocket using mg_wakeup_server

2014-09-17 Thread kk
Hi, I am working on an application in which I am using mg_wakeup_server API to push data over websocket connection. As guided for Mongoose usage, I have a poll_server in main thread and a separate thread for pushing data to live websocket URIs. There are a couple of client applications which in