Commit 7687b846 authored by Rowan Skewes's avatar Rowan Skewes Committed by Peter Hoeg
Browse files

mosquitto: fix bug with firefox wss http/2

Firefox has a bug preventing websockets being created with
a server that uses http/2. Building libwebsockets without
http/2 support fixes this issue for mosquitto.
See https://github.com/eclipse/mosquitto/issues/1211#issuecomment-958137569
parent 0dd9a9cf
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -17,9 +17,14 @@

let
  # Mosquitto needs external poll enabled in libwebsockets.
  libwebsockets' = libwebsockets.override {
  libwebsockets' = (libwebsockets.override {
    withExternalPoll = true;
  };
  }).overrideAttrs (old: {
    # Avoid bug in firefox preventing websockets being created over http/2 connections
    # https://github.com/eclipse/mosquitto/issues/1211#issuecomment-958137569
    cmakeFlags = old.cmakeFlags ++ [ "-DLWS_WITH_HTTP2=OFF" ];
  });

in
stdenv.mkDerivation rec {
  pname = "mosquitto";