[Debian-iot-maintainers] Bug#1023993: Mosquitto 2.0.11-1.1+b3 unable to use websockets

Gianfranco Costamagna locutusofborg at debian.org
Wed Sep 13 06:54:51 BST 2023


libwebsockets (4.3.2-4) unstable; urgency=medium

   * Re-enable LWS_WITH_EXTERNAL_POLL support (closes: #1050195).

  -- Laszlo Boszormenyi (GCS) <gcs at debian.org>  Wed, 23 Aug 2023 22:13:50 +0200

Looks like fixed in sid/testing.

G.

On Sun, 13 Nov 2022 16:52:04 +0100 Tom van Leeuwen <tom.van.leeuwen at fs-g.org> wrote:
> Package: mosquitto
> Version: 2.0.11-1.1+b3
> 
> The libwebsockets-dev package in Bookworm is compiled without 
> "LWS_WITH_EXTERNAL_POLL=ON". This breaks compatibility with mosquitto, 
> which requires this option to be set in libwebsockets 4.1.6 to use 
> websockets.
> 
> Mosquitto is statically linked against libwebsockets in Bookworm. 
> However, the linked version does not have the LWS_WITH_EXTERNAL_POLL=ON 
> flag set either, since it is linked against libwebsockets.a file from 
> the libwebsockets-dev package.
> 
> These discussions show that "LWS_WITH_EXTERNAL_POLL=ON" is required:
> 
> https://github.com/eclipse/mosquitto/blob/v2.0.15/src/mosquitto_broker_internal.h#L26
> https://bugs.archlinux.org/task/70321
> https://github.com/eclipse/mosquitto/issues/2060
> 
> Since mosquitto it is statically linked, the problematic libwebsockets 
> code is inside that package as well.
> 
> Ideally, you would add "LWS_WITH_EXTERNAL_POLL=ON" to the build of 
> libwebsockets-dev and rebuild mosquitto. Alternatively you could disable 
> websocket support in mosquitto all together by removing the 
> WITH_WEBSOCKETS=yes flag.
> 
> I have the config file attached (stored in /etc/mosquitto/conf.d) that 
> results in unusable websockets, but testing the issue requires a 
> publisher to get some data in mosquitto and a subscriber via websockets 
> to reproduce the issue. There is no error message, there is simply no 
> data provided to the subscriber. Let me know if you need a test since it 
> is already documented that the "LWS_WITH_EXTERNAL_POLL=ON" flag is a 
> requirement for mosquitto with websockets enabled.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-iot-maintainers/attachments/20230913/4f0a8b41/attachment.sig>


More information about the Debian-iot-maintainers mailing list