[Libwebsockets] HS: UPGRADE malformed

Andy Green andy at warmcat.com
Sat Apr 27 04:16:11 CEST 2019

On April 27, 2019 2:26:55 AM GMT+01:00, Paolo Denti <paolo.denti at gmail.com> wrote:
>Hey Andy
>what's wrong with you? I tried to help anyone that might have the same
>issue as soon as I found a potential solution.

*shrug*  This is FOSS.  Nobody owes you anything.

If you want to provide usable info to try to understand where your problem is coming from, let's do that as I described.  Maybe there's something to do in lws.

You're talking to > 200 people + search engines when you post on this list, while a handful might care about your specific server, nobody cares to have 3 x drama emails from you (so far) in their inbox.

>I am not a maintainer of the library, it is my first time using it, I

I am the maintainer.

>struggled with a potential issue, I found a way to sort out a potential

No... a 'fix' is something different that requires definitively understanding the problem and a 'solution' would be figuring out some action that changes things so the root cause can no longer apply.  For example, is this really actually caused by lws, or by your specific server and the other clients being liberal in accepting its deviations?  Your original rant doesn't contain anything useful to tell, because you jumped to a conclusion already without finding out either the mechanism for, or the source of, the problem.


and I am posting what I found hoping someone could ask me how to
>further to help everyone.
>At least, that is what I do on my side when I get such requests on what
>am managing.
>I did not know how to get detailed information to supply in order to
>to fix the problem, otherwise I would have done it myself.
>Now that I see how to supply info, I will do that as soon as possible.
>Thank you for you help
>On Fri, Apr 26, 2019 at 5:47 PM Andy Green <andy at warmcat.com> wrote:
>> On April 26, 2019 11:14:01 PM GMT+01:00, Paolo Denti <
>> paolo.denti at gmail.com> wrote:
>> >I have been struggling for a very long time with error HS: UPGRADE
>> >malformed, even with very basic examples.
>> >
>> >I just was not able to write even a single super basic example, not
>> >even
>> >starting from the existing examples.
>> >
>> >Whatever I tried to do, I just got this error, on my server (Java,
>> >Spring
>> >based) fully working, with several clients, node.js. python, perl,
>> >javascript of course, ...
>> >But I was not able to have it working with libwebsockets.
>> >
>> >I was about to give up when, today, I browsed a little bit and I
>> >out
>> >someone was having the same issue while upgrading to 3.1.0
>> >
>> >I tried to build 3.0.0 and everything magically worked, without
>> >changing a
>> >single bit from my last experiment, out of the 200K zillions I
>> I hope that was useful for you as therapy, because as an actionable
>> report I don't see what to do with it.
>> Can you show me some verbose logs from lws when it decides the
>upgrade is
>> malformed, build with cmake .. -DCMAKE_BUILD_TYPE=DEBUG and -d 1151
>or so?
>> -Andy

More information about the Libwebsockets mailing list