curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to Receive HTTP2/Push in memory? Need a working example.

From: hatef madani via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 17 Sep 2018 10:23:43 +0430

Thanks, Daniel,
Your example is working!
The main difference I can find between my code and yours is the way we used
Memory Structure.
I tried to pass it to server push callback as user pointer and you set it
in a global variable. But I'm not sure this can be the reason for the error.
I appreciate your attention.
Best Regards,
Hatef

On Mon, Sep 17, 2018 at 3:02 AM Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sun, 16 Sep 2018, hatef madani wrote:
>
> > Yes, it does. It works nicely and it's saving pushes in files. I want it
> in
> > memory to send to send to other modules of my program.
>
> To me, it seems like the push logic works (which makes it save the pushed
> file
> correctly) and it's just your code that isn't doing things the proper way.
>
> I wrote up an example that seems to "just work":
>
> https://github.com/curl/curl/pull/3004
>
> --
>
> / daniel.haxx.se
>

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-09-17