[Libwebsockets] Crash during client pipelining post

Karl Vogel karl.vogel at gmail.com
Thu Mar 12 12:34:45 CET 2020


On Tue, Mar 10, 2020 at 8:21 PM Andy Green <andy at warmcat.com> wrote:
>
> On 3/10/20 8:27 AM, Karl Vogel wrote:
> > Was trying to use the PIPELINE feature in my POST client, but once I enable
> > LCCSCF_PIPELINE, the client crashes when the first client gets a
> > reply. Works fine if I
> > don't include the pipeline option. Seems to be caused by a NULL
> > pointer dereference, not
> > sure if it's something I'm doing wrong or some other bug:
>
> I could reproduce it using lws examples
>
> ./bin/lws-minimal-http-client-multi --event --post -p --h1
>
> the main problem is although the handoff scheme for h1 pipelining is
> fine as it is, it doesn't take account of event lib -specific magic when
> doing the handover.  I pushed some patches on master that should solve
> the thing you hit, but it seems there is more to do under some
> conditions, I'll look at it tomorrow.  Please try the patches in the
> meanwhile.

I seem to have a knack for breaking things :-)

New commits seem to have resolved the issue!


More information about the Libwebsockets mailing list