curl / Mailing Lists / curl-library / Single Mail


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

From: Daniel Stenberg via curl-library <>
Date: Mon, 17 Sep 2018 08:42:31 +0200 (CEST)

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.

Received on 2018-09-17