Re: [libmicrohttpd] http2 suspend/resume

2019-01-06 Thread Kunal Ekawde
e the epoll_ctl to epoll_mod instead of epoll_add, which would eventually trigger sending response for this stream. Thanks, Kunal On Fri, Jan 4, 2019 at 11:39 PM Kunal Ekawde wrote: > Hi Christian, > > I could get multiple streams working with suspend/resume. Took the > following appro

Re: [libmicrohttpd] http2 suspend/resume

2019-01-04 Thread Kunal Ekawde
triggered to send the response. Please let me know if this sounds logical or there is basic issue with this approach. Thanks, Kunal On Mon, Dec 31, 2018 at 2:18 PM Kunal Ekawde wrote: > Hi, > > I'm currently checking the http2 combo of nghttp2 + MHD provided by > https://github.com/m

[libmicrohttpd] http2 suspend/resume

2018-12-31 Thread Kunal Ekawde
Hi, I'm currently checking the http2 combo of nghttp2 + MHD provided by https://github.com/maru/libmicrohttpd-http2. It doesn't support multiple streams with suspend/resume. To try to make it work, I was thinking if following understanding is correct(only if version is http/2): To suspend, we nee

Re: [libmicrohttpd] Aync handling & message response

2018-11-12 Thread Kunal Ekawde
earlier, till now tests looks positive. Thanks, Kunal On Tue, Nov 13, 2018 at 12:55 AM Kunal Ekawde wrote: > Hi Christian, > > I have following code snippet: > pCr is of type ConnectionRsp -- a structure to hold the request data for > mapping on 2nd invocation of access handler cal

Re: [libmicrohttpd] Aync handling & message response

2018-11-12 Thread Kunal Ekawde
7;t > read more of the upload. That's at least my best guess, as you only > provided a code fragment. > > happy hacking! > > Christian > > On 11/12/18 2:24 PM, Kunal Ekawde wrote: > > Hi Christian, > > > > I'm using following options, single threaded ex

Re: [libmicrohttpd] Aync handling & message response

2018-11-12 Thread Kunal Ekawde
Request complete on txn:3523 termCode:5\"} -- doesn't process the uploaded data eventually error when client(libcurl) times out. httpServerAccessHandlerCb:653: Incoming req, inserting txnId:3524 in map\"}\ Do you see any issue ? Regards, Kunal On Sun, Sep 9, 2018 at 4:02 PM Christian Gr

Re: [libmicrohttpd] Question on Async support

2018-09-26 Thread Kunal Ekawde
Hi, I'm using the same thread as its related to it. Wanted to confirm this behavior. MHD is running with external epoll using no new threads for MHD with suspend/resume. When we receive external http req, we suspend when response is not sent in same flow, when data is available, connection is resu

Re: [libmicrohttpd] Regarding Flow control

2018-09-18 Thread Kunal Ekawde
IT' data ? is it the recv call buffer size ? when will remaining data be read ? Thanks On Tue, Sep 18, 2018 at 4:37 PM Christian Grothoff wrote: > On 09/18/2018 12:23 PM, Kunal Ekawde wrote: > > Thanks Christian, > > So as a solution we need to have a timer for such cases an

Re: [libmicrohttpd] Regarding Flow control

2018-09-18 Thread Kunal Ekawde
etected if/when we try to > send data to the client and handled appropriately. > > Happy hacking! > > Christian > > On 09/17/2018 09:01 PM, Kunal Ekawde wrote: > > If the connection is suspended and cases of: > > a. client closes the connection before response is se

Re: [libmicrohttpd] Regarding Flow control

2018-09-17 Thread Kunal Ekawde
If the connection is suspended and cases of: a. client closes the connection before response is sent. b. server app doesn't respond at all post suspend. both cases there is no notification by MHD even if connection timeout is specified and notify callback. How can these cases be handled ? Thanks,

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Kunal Ekawde
Can you please provide some information on 'MHD_USE_TURBO' as I couldn't find any info in manual. Thanks, Kunal On Thu, Sep 6, 2018 at 11:41 AM Kunal Ekawde wrote: > Hi Christian, > > Can you please confirm if suspend/resume wont use pipe (lfor IPC)? > As

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Kunal Ekawde
ld not pay the cost." But couldn't see in src code. My application is using external epoll w/o any MHD threads. Thanks, Kunal On Wed, Sep 5, 2018 at 9:22 PM Kunal Ekawde wrote: > Thanks Christian, yes I got it done :) > > On Wed, Sep 5, 2018 at 3:05 PM Christian Groth

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Kunal Ekawde
all this at once ;-) > > Happy hacking! > > Christian > > On 08/27/2018 11:15 AM, Kunal Ekawde wrote: > > Hi, > > > > With ref to: > > https://lists.gnu.org/archive/html/libmicrohttpd/2018-08/msg00015.html , > > I gone through twister, but looks like this

Re: [libmicrohttpd] Aync handling & message response

2018-09-04 Thread Kunal Ekawde
ubsequent request after processing the previous request is complete. > > I hope this clarifies. > > On 08/29/2018 09:43 AM, Kunal Ekawde wrote: > > Ahh ok, getting it now, I wasn't using suspend/resume, but if client > > pipelines the requests, we would have suspended

Re: [libmicrohttpd] Aync handling & message response

2018-08-29 Thread Kunal Ekawde
Ahh ok, getting it now, I wasn't using suspend/resume, but if client pipelines the requests, we would have suspended the connection, will it be handled ? Appreciate you help. Thanks, Kunal On Wed, Aug 29, 2018 at 12:47 PM Christian Grothoff wrote: > On 08/29/2018 08:44 AM, Kunal Ekaw

Re: [libmicrohttpd] Aync handling & message response

2018-08-28 Thread Kunal Ekawde
ient only from the MHD callback handler ? or something is missing in above ? Any help will be appreciated. Thanks, Kunal On Mon, Aug 27, 2018 at 2:45 PM Kunal Ekawde wrote: > Hi, > > With ref to: > https://lists.gnu.org/archive/html/libmicrohttpd/2018-08/msg00015.html , > I gone t

[libmicrohttpd] Aync handling & message response

2018-08-27 Thread Kunal Ekawde
Hi, With ref to: https://lists.gnu.org/archive/html/libmicrohttpd/2018-08/msg00015.html , I gone through twister, but looks like this is sync operation. The curl operation is performed sync in same thread. I wanted to know if there is a way to make it async, so basically on receiving the data call