how to send error code to client in case of improper request

2014-09-17 Thread Giridhar Addepalli
Hi All, I want to build a embedded http server( which serves files from local disk to clients ) in to my c++ application. I want to return error code to client in case the request is malformed or doesn't fit into logic of my application. i am using example at https://github.com/cesanta/mongoo

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

Re: High CPU load with file transfer

2014-09-17 Thread Sergey Lyubka
Well if that is memcpy, then I don't find it surprising. Server is mostly doing data copying, reading from file and copying to the socket. On Sat, Sep 13, 2014 at 12:11 PM, Marcel Wirtz wrote: > Yes > > -- > You received this message because you are subscribed to the Google Groups > "mongoose-