curl-library
Re: How to Receive HTTP2/Push in memory? Need a working example.
Date: Mon, 17 Sep 2018 15:53:24 +0430
Yes, It's not a libcurl bug. Many thanks for your tips. I'll try to find
out why it's going to wrong memory areas.
On Mon, Sep 17, 2018 at 11:12 AM Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Mon, 17 Sep 2018, hatef madani wrote:
>
> > 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.
>
> No, that's not a reason. I chose the global variable approach only to keep
> the
> code simple.
>
> I think you just need to debug your code and make sure the calls to the
> callbacks get appended to the correct data areas.
>
> I think the fact my example works shows that this is not a libcurl bug.
>
> --
>
> / 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