From nobody Thu Mar 17 17:49:26 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C5F2B1A314CF for ; Thu, 17 Mar 2022 17:49:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KKF5L3Y47z4d9D for ; Thu, 17 Mar 2022 17:49:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 567D070E3 for ; Thu, 17 Mar 2022 17:49:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22HHnQaP022722 for ; Thu, 17 Mar 2022 17:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22HHnQYo022721 for ports-bugs@FreeBSD.org; Thu, 17 Mar 2022 17:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262552] net/mosquitto: Mosquitto websockets support not working Date: Thu, 17 Mar 2022 17:49:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: joji@eskimo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647539366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p/titl+uVE2/noihX57ct/qYU2xLwGvfvrWHzhXwTgE=; b=HhXj+Peweg9N53omnxc/fSsxAe35z4xLp5JBW9kPFHowB1cJ5VeUaisXe6yLASs3j75EPn h3gCBkK3ETj91XfLPeLjBnFEYI9DkACoi2QEx/rZcRClKRmhJQAe2LtuDJrEI241oAFe7j Avez3K2JYjwjuqME1DkNQsDY24RPY0vP9sh8ySl3TnvuNiXAuGFHW0szNxe4MkKIHBS+0q 7qCyX63EGWv5Q9wGwGqhgiOjCRYSCkCmUGvsSeMyDYdtIPbQ51E/GOTd+Ma0DEV1Uia2hN IziDZRtk7LFO5YcluYGRbh1rtOhddadqDc3O/IURhRH0dqjjO9JXUSHXYd7F3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647539366; a=rsa-sha256; cv=none; b=bD8AuRb5ciGaNJ6wzFNFN14ldkzMNXRpWkDOfAdXGj7o1e5w0+ax6+2/en2rEtAuteBqE2 PtrfET4YM/GVQzKyaQlNETGjO46T7LkD2a5bY5Lt81BRofMAU3lIcMtLbpWE2S5raCSvBI nwUyATdfcF/SE4nswvoPaX/v6qmnqGXjAawtSWpO5TqCYMBfQU4CZPs/ebfjgrJTHTe7hU VZ41puths2I99mlgbUS5uQ/iF6ae2hP2VWH/ZMn/wI3WmE/HdjmaRtJzltPMgdGDl93unp n8pO4bRjW1jhpNjCU+lqyzUGueiGrnZyTjCPn8031TJXsFvkbq1vJ5MqqdkVxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262552 --- Comment #6 from Joseph --- (In reply to Joseph from comment #5) ---UPDATE--- I rebuilt mosquitto and libwebsockets (with LWS_WITH_EXTERNAL_POLL support)= and upon testing, the client/subscriber appears to be unable to keep a connecti= on open to the broker. It is closing connection immediately. See transcript be= low.=20 The client appears to be retrying every 2 seconds. I specified a "keepalive=3D300" value to the connect call, but it did not s= eem to make a difference. Works fine when using mqtt protocol. So, looks like the libwebsockets porti= on is broken on FreeBSD. I tested on OpenBSD and websockets works fine there. However, the versions there are: libwebsockets-2.4.2 and mosquitto-2.0.12. [ Transcript from /var/log/daemon.log ] Mar 17 13:09:22 nirmal mosquitto[6450]: 1647536962: New client connected fr= om 192.168.50.210:25231 as wallace-client (p2, c1, k300, u'wallace'). Mar 17 13:09:22 nirmal mosquitto[6450]: 1647536962: Client wallace-client closed its connection. Mar 17 13:09:24 nirmal mosquitto[6450]: 1647536964: New client connected fr= om 192.168.50.210:23099 as wallace-client (p2, c1, k300, u'wallace'). Mar 17 13:09:24 nirmal mosquitto[6450]: 1647536964: Client wallace-client closed its connection. Mar 17 13:09:26 nirmal mosquitto[6450]: 1647536966: New client connected fr= om 192.168.50.210:3 001 as wallace-client (p2, c1, k300, u'wallace'). Mar 17 13:09:26 nirmal mosquitto[6450]: 1647536966: Client wallace-client closed its connection. [...] Mar 17 13:15:32 nirmal mosquitto[6450]: 1647537332: New client connected fr= om 192.168.50.210:9553 as wallace-client (p2, c1, k300, u'wallace'). Mar 17 13:15:32 nirmal mosquitto[6450]: 1647537332: Client wallace-client closed its connection. --=20 You are receiving this mail because: You are the assignee for the bug.=