Message ID | 20240130075036.11168-1-michael.bella-oss@weidmueller.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBDS5X3ELQ4BRBVGU4KWQMGQEHBW5WRA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=haBZBrlg; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f37; helo=mail-qv1-xf37.google.com; envelope-from=swupdate+bncbds5x3elq4brbvgu4kwqmgqehbw5wra@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qv1-xf37.google.com (mail-qv1-xf37.google.com [IPv6:2607:f8b0:4864:20::f37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TPHQy1xHjz23gZ for <incoming@patchwork.ozlabs.org>; Tue, 30 Jan 2024 18:50:48 +1100 (AEDT) Received: by mail-qv1-xf37.google.com with SMTP id 6a1803df08f44-68c52361422sf29955356d6.3 for <incoming@patchwork.ozlabs.org>; Mon, 29 Jan 2024 23:50:48 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1706601044; cv=pass; d=google.com; s=arc-20160816; b=sbLfvXBKDzs5pDDn0TZOKqu2ysTmUWpMX/ZsrRoQ5efrOJZYSZxkMZXEX+U9aYG6/P yWSvgwuonz1x9AipZeRPHudhlx/6YmjbKnLScUa/sJT8aJL9OI/jhfR0NxJyxxlEZhWK sCeUHuXEm6G8gStT3HW6mzzOUvx7oYQosT+M/jFfp/cwxtoxrNrO1k4r6jnDJ+dFtkGR dyFZyoqh5OApi8iZL2Xvd9HOzVakG5cR30W7X0K2SZAYOFM+GsCDnNx1PTnjr2yDQzzf 5vAo1cVXfN2EvGBR4Wh+v9Pr96U3LlH+Muhckl4ShVEJLH2qTtgF5Mqu6ASFOtSvAA8i k1ng== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=fPfWxZU6eOXdf3ubw57l6Bwlha3We5qkf/ci2tBbH8g=; fh=X//+z9XtxwqD0pEPg5d9YeasbLj8+7zgYONkpECQouw=; b=YdRvMKwPRdHycYKvrWQhammAyiKaR849Ce3T+Ucwfjtl4z+Zlz5ah9I7A8Ax4yL0xP dlFM+4e5CyJTpencfasQy2FZOafmfmy3gg7YnBHeWIEl70gRffacUqR6Ex42HTJ4MMBv iI4IOxSOkfFZ7iJqR/J+OVjqkuNUeu12fV8PV468xH1qtgDaw9J6hfTHtY/6VoNBy3Br VrIKGwHGsIO0oXqWzbyBeraVj0MWSH67JcG0xB4id54vLrL1Q3qlEcV7VCHBHkwwWeNe T9pl9NYBQo7iD0eFSLkQtJyoKC7HHNWMgWiRmEuXnLNIopNjjeX6hYzkuiG6am0YWerf zecA== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@weidmueller.onmicrosoft.com header.s=selector1-weidmueller-onmicrosoft-com header.b=qjxpvmwe; arc=pass (i=1 spf=pass spfdomain=weidmueller.com dkim=pass dkdomain=weidmueller.com dmarc=pass fromdomain=weidmueller.com); spf=pass (google.com: domain of michael.bella-oss@weidmueller.com designates 2a01:111:f403:2612::601 as permitted sender) smtp.mailfrom=Michael.Bella-oss@weidmueller.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=weidmueller.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1706601044; x=1707205844; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=fPfWxZU6eOXdf3ubw57l6Bwlha3We5qkf/ci2tBbH8g=; b=haBZBrlgehBDbqVEEOATr9NHuPbAGzdcrZFtN7kyhOhbf2xmLNfHlStcwmwX2FKG1n z+ZF7JammE+CidFyVPRMGKjpIWVe2rPXiXOnH45HaT9lrPbpjEya/Ar1ckOkazHDwLdr fihA5oYKHibr6OgqUmQsZRbsBP2rFPcPQIIDnmmQ2/xgRE/l+MkTVO7TUQMpgkttQnAA jr0kd9W4unh5Zk5DF4hq3SkE3CTV4SLk8+nQxxlL/BJSgPbIXJfcn0CyBD3ApdRLSt1A DrkaiWSZCZhHyXa7KBPAaviTM09/zQIQiP9RDyHTfDKDFt7r11RPOmGc03EjcwtxXCJj nszw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706601044; x=1707205844; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=fPfWxZU6eOXdf3ubw57l6Bwlha3We5qkf/ci2tBbH8g=; b=qiJ4oBoN20Hqtjet6C2RVqwQWJKh0jfNBHxycr8PhdmpUeDWZsMWZx4Mm4ipEDe8N9 27gumDZhxcnOiBqYEgBczsfdiQD7cxQS1gjoSx4gYBNmEPCLPBgjX0uzEQ05T8oUrEza IiyoBgE41eErLVjpnwYDhFrO/g6jXXlFEbcw75c6i9KUUTWXMcaNQtSIlVp738/RivlN z6ryOsuqnj3C+qIdKvon0oZDVWxxHd3mgscAQtRxlzDZvQIsFIsgIyn1nr8P9ibmA6jV rI4FwfOiOWmUEbMYJuFSOFLLtUY2q0YOrHgsdY19CpARLF2gtbW1fpebT6tCQIeospLy ZBvQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0Yz8ahWViUjI2H97aVGDezY/btrK96HozkiQK2P5tScgGldXKmr/ 9mavOheSKYt+xwoyIaxMxQM5536NTtoXgnq/qwUCX/3+DhdCTgzs X-Google-Smtp-Source: AGHT+IH5aooSd3pIOfALnnMxq5pLRAmC8tA8mqzZf+LmiFtod9YGFucr12WUAKdScSG9HqlsWxaMcQ== X-Received: by 2002:a05:622a:253:b0:42a:9853:6ea7 with SMTP id c19-20020a05622a025300b0042a98536ea7mr5909205qtx.61.1706601044553; Mon, 29 Jan 2024 23:50:44 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ac8:5bc8:0:b0:42a:9900:4ba4 with SMTP id b8-20020ac85bc8000000b0042a99004ba4ls105923qtb.1.-pod-prod-08-us; Mon, 29 Jan 2024 23:50:43 -0800 (PST) X-Received: by 2002:a05:622a:15c3:b0:42a:a6d7:a788 with SMTP id d3-20020a05622a15c300b0042aa6d7a788mr3019256qty.31.1706601043454; Mon, 29 Jan 2024 23:50:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706601043; cv=pass; d=google.com; s=arc-20160816; b=jO9UhfFL/imAqFSEaIjRcrAtCsad9BbAl1ltGlNGNgwmFZl75g8W6AalyClX4oCQTE WTd8uLHFGC0HRU2QCciP05tf5ALzUB0oTRl0sUbyqqNguHjd82ZZVOGiS81EWqkLpQyN oElc75ypklSmK5GrQAMkk8gvbA+HZppuyjaIeBJOy+XxGSv38TzT9qqUnPT1+c7PlH2x K5gQxN250yCpn6B/J85XSuF2KgU9X2CahJIS3PrDtpP0loR2FwjbHnsu9n8dHmhUf9QT /dFDnIX6+0pPeUg3NZBTRFHtr1UU6BL0y6wghGwY0YggwoDxRhaQ/dsPA1DridXz9yn+ 1+sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:message-id:date:subject:cc :to:from:dkim-signature; bh=yaLYXllxfTTvCKoNUHM2BNcoogC4Cwo2YCNBfRig8qM=; fh=X//+z9XtxwqD0pEPg5d9YeasbLj8+7zgYONkpECQouw=; b=wSaOPblrROiEcIVq7H53MSiNBzdOyU6xB+6DatGBBolLv/R4WRRLDcXiHd95UirdUJ 5VannXBjammwhyoPEDfwe0CkaEWni2tS1UKR722HW77ZxbDIci+nZJW4VZGKtnbnExXO TMVCWpbftwBshvqb1KWoJYBgFVd+UAfdirL3MVZ1wdo4jUwIJkeDwVmfmkhLImnTCDUu CRInLr1omTywA/mg86X+dgAztdKA3+A1nt7KoamwJ0TqvA2EaJYX5X+/rorzBTYAH0E8 9fTbQr/RlJkQUp2SgMwEdMma8Vq6Pg78s65FSGSZU2DBBJ6cv4nJtaX3+9JjTg4U1oph 1SVA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@weidmueller.onmicrosoft.com header.s=selector1-weidmueller-onmicrosoft-com header.b=qjxpvmwe; arc=pass (i=1 spf=pass spfdomain=weidmueller.com dkim=pass dkdomain=weidmueller.com dmarc=pass fromdomain=weidmueller.com); spf=pass (google.com: domain of michael.bella-oss@weidmueller.com designates 2a01:111:f403:2612::601 as permitted sender) smtp.mailfrom=Michael.Bella-oss@weidmueller.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=weidmueller.com Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20601.outbound.protection.outlook.com. [2a01:111:f403:2612::601]) by gmr-mx.google.com with ESMTPS id bs39-20020a05620a472700b007840c63ac12si39061qkb.6.2024.01.29.23.50.43 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2024 23:50:43 -0800 (PST) Received-SPF: pass (google.com: domain of michael.bella-oss@weidmueller.com designates 2a01:111:f403:2612::601 as permitted sender) client-ip=2a01:111:f403:2612::601; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bcs74O45SPNUVcDFMTrXVeaiLWqg+5BK8Aefa3o7pXDvn6VfYD2n9LJ6wiskIjn3NoyP//9MC4K86lhlCplJVOZgj51E4i4Hx1yJuK630g7FeAMYoPQguN858DhsMvCchCd/IAcYbGfsUkKgb7iyp8G1nrs9+gz61sZ/NxkwLs2bRiyu5YHucjTJmReXVhHpKw17bIiBKSqegJpQBrMHmUMG06AW5d+vJqXv2zCjpPS7QytW4nlyKH3Z2QoocwAs0m0OWd3C4AuHEZCvOZNA+QpvxT6R4sENgAE2+ioI7CcQBUa+++D45cseYuz419nAgGHZ5y1uKmQDycnBTynVvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yaLYXllxfTTvCKoNUHM2BNcoogC4Cwo2YCNBfRig8qM=; b=gZHF3rKpSFmKe29448zMjLTKC1Eb77XKGNF6iM8NCFfmzSGNkMWrvK2RnJuFBXujebOUEFon/focaRolapn8sO3SHBSauoUe+A4yakCtGlY+PolILMgl2Bu0RAqV35aKGPRHhrCFxfmKXn05pl0NQaN7SdGq+0PU4NR7HpisRsDj3OTEY45s5qW8n7H0Dr82mOJOqRQ0BBAWfAP0wUQ9AoVA6TejcgMvz+BUy4SbqMfzM46G9bRkecMT+YmaJvXtxIhrQpTcq2CR1E2v0E2kWUF2JrJWXo4lucd8I7vjQ76SfY9OBb+6pNgIXqoe6/ZjFetPR4QuZoQWh1cLtnGDDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=weidmueller.com; dmarc=pass action=none header.from=weidmueller.com; dkim=pass header.d=weidmueller.com; arc=none Received: from AM7PR08MB5512.eurprd08.prod.outlook.com (2603:10a6:20b:de::19) by AM9PR08MB6065.eurprd08.prod.outlook.com (2603:10a6:20b:2dd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.34; Tue, 30 Jan 2024 07:50:42 +0000 Received: from AM7PR08MB5512.eurprd08.prod.outlook.com ([fe80::5616:1009:156:f641]) by AM7PR08MB5512.eurprd08.prod.outlook.com ([fe80::5616:1009:156:f641%4]) with mapi id 15.20.7228.029; Tue, 30 Jan 2024 07:50:41 +0000 From: michael.bella-oss@weidmueller.com To: swupdate@googlegroups.com Cc: Michael Bella <michael.bella@weidmueller.com> Subject: [swupdate] [PATCH 1/2] mongoose: use websocket flag of connection struct Date: Tue, 30 Jan 2024 08:50:35 +0100 Message-Id: <20240130075036.11168-1-michael.bella-oss@weidmueller.com> X-Mailer: git-send-email 2.30.2 Content-Type: text/plain; charset="UTF-8" X-ClientProxiedBy: FR3P281CA0209.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::8) To AM7PR08MB5512.eurprd08.prod.outlook.com (2603:10a6:20b:de::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR08MB5512:EE_|AM9PR08MB6065:EE_ X-MS-Office365-Filtering-Correlation-Id: 12f881b6-419c-49e6-d71b-08dc2168286b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zqOX6VKiwjvYv7UXqXUcVSLHGDkA5c9viLieYOcAqvlE9OiyOvD3JaWaD4aa7V9cKVwrbPZi0R66/jszzKaIdvdTmVUS1dWh+YzXSQV/A0eDFbPG3BTRoq7ODlwX2VOPSuXL4KeVVAKjpP4929b1M5eH7q2C+G//DexgF78mbw7m4IejeM/vqZNIO5liAdb2DrtX7DxYxhVNjvP6CgIv0USl1ENmCevzZ1sjhTyLPfPOHTwYShfsRSDu53BylOXMkW5/spooWofBGeihLaEdX//ACNioOSHGbzf0+QYkOiAJMqGxyK2KAo9WmxYi8OiCkOSUmohdWdGbco3CDP6j5x0+v342h2yLIbx+F4ZDNBuKGJCUXh3t2lUpBFgQnb2ePaRuQrH95kMQEKaN4FpWg+gYsOrHonURl1ucoPViS/FH8r/SLVHc/Ii1z+lUwC1R5/WZ6wgZGWdKohfbHJr8eYKR7vSdyTxt7RaH/e6MTe8kTM/nhfsaZ7ul5VfuSRmBuT05tm4sOME00wUKh/mBAgi98RWkiL3EjSM+Vl3QjxO7Zb8roHIx78Ee/4YbaqltDAhrNSQ5dSAN4+bhdBr6m2eBgtQsURsJwXeTBfF6Auur50SgMqzqonKm6k2JQrcF X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR08MB5512.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(136003)(376002)(366004)(346002)(396003)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(8676002)(8936002)(4326008)(86362001)(5660300002)(2906002)(66556008)(66946007)(66476007)(6916009)(38350700005)(6486002)(36756003)(38100700002)(316002)(52116002)(6506007)(9686003)(6512007)(478600001)(6666004)(83380400001)(2616005)(26005)(107886003)(41300700001)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9fhGQHov92uxClFP3wkIZVklAPpwiZjoSSC7eOyuWEgugBmFZLLq+5b+6g2zfAHPjYfx6bij1u5K8nGJaxopNLYTDOJ+/CeuTT5plFNqSlqk6xZcwCxSLiYENqlZrsaPhPvc0Fr6TJcja9xmjCyi0BrQorYZDayBMIQUUCkwSYMyEcgMdvdOgpD+AiDu/1p84wkYPnmn84GaSXWbmiEaeyOK+69QYiTDPbn9Dg7OyUkS2BNCOcByptjiKPp+hT1Mb33lK+DYY7wbGdxetDftr8hce9/TCLr4l++pzLuVgNOa8Q0S6BI3sDqA5gtcxpIvCt7n8gQqfVrHgQZ/UUWjYKHWkmpZkKM/FkhFIpBY45Pea84ghWknf7KBnD75IK84n48LeMDNxrq/J8BaMIYGHHz4OdVY0+Hl19WUSjMiQphCRSfxGphtadlIfpc+74qQmrXA9A+9nDa442zgo5Eh3JkPARjdnlbtvSsj9fMFevrih5Hp5ynFhwBY6CZEYKdLY+3sucUOC+yCXjzP/tg1YfI+YhCFfb6Qc6nVQISxy9Ggus53ObRyni199MvyeybyS0Z5WohznUTzlALKO/DWvAPEgWvuf4fIaT7EnBjDRR9Fd1M679u0zPnDZ40pK97EUJbQwjU8jeWcpMBy9S5ZPsa5bppMOvriSkhPSBnmreIgJLg1h9f7Hbtq4ndZbO3Y4gBEzI6nsWszbSDz5buYaxtmcmOWqY4Sm2TB3hQuMpYUsAuSbEHX0pMR/K6zIua7731J4exNuxdmL+hMN64QsUdrguXkNSXRG0zNWa9WLqzBHb+2O0jpKG+LFDKH0vi2tsVuGi18bH4zA4PS4aF2m1UTlMn+0mNWfGVEH96G5IqhGTTKUlRwkRyzuBKhpkGnLC0WklA2OBqkQq/XcxmfY9NY/wLWSyLB+0DiGTfA8yZe1h0um7UvOv3yrhPeyWKGNsc/7u52XAb/9Rgzi2Iy0JlaV/eNONc453xrgVENiLrOYo/oFqkuZOFLASlHUpAzjOjhhTgt/B/Lmy/Ap8IYe/WjRFDZLGGx2nBVmW1Dsy5/yjezSjWBqeuTrQ7mTLyFr07B0Y4kuLbX7ePnFiFjakq/+I49J5msKhu+dLp6hqYxLWVBWIFnQ/xc2C2ysOEa84HGG2iNjXxbYySekOceU2ORzTWob/u3aM7fEL2NtzC7H4iFxjx8vm5q3c1M7CEDw25Kqew14ihdnkJvbdqRWSxDz3zuTy/ZhmpOsCvNUi+qSo0n90h4HAbgWf+nvgADCcRPfRQY/ZgGc1H13GLvck6z2hb9Yb3RiGWHDVqMpS+gLXBPbri/uNZPxmQf+XZHKRyLys5KcJ2SnWLI9A7pKfmM2RnRrObED/wDBLpQBi5NM7cjQrTE4aaxMJ4PUK5PxpS/O6Sa7UY8xOhZt81Kystdu35AqcvOSoug8XH5Bb9x8PVOB7mchl4GeZiMlunfLUjUQs+g2aLJBPGKGYQ+2JRmT3isK1s1gQdqtmRL+KoQOzWQuV4YeQDBy+NNQSfjrxQKmrQ93SosPZBPl2TmpunE8l7Bcy5fiozthnCG06jGTA7BeMYYkyh4YuLHfq0JAAULOlSniKD1kXNGLBZnFm3mDKhyPpOa9ewWiWbR9o4= X-OriginatorOrg: weidmueller.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12f881b6-419c-49e6-d71b-08dc2168286b X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5512.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2024 07:50:41.9149 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e4289438-1c5f-4c95-a51a-ee553b8b18ec X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 15h+bXJorBr9LRCH0JxTFSwPIjEhw9xxfY8BJgS1ASvxTeoXFFbrpbmlfceRkgCDWj0JnUbLcoKsq1KeDl1DJ60imd8esw2DT+CAUI2/jyEcQXBXj5fj6yffdhj0k6x5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6065 X-Original-Sender: michael.bella-oss@weidmueller.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@weidmueller.onmicrosoft.com header.s=selector1-weidmueller-onmicrosoft-com header.b=qjxpvmwe; arc=pass (i=1 spf=pass spfdomain=weidmueller.com dkim=pass dkdomain=weidmueller.com dmarc=pass fromdomain=weidmueller.com); spf=pass (google.com: domain of michael.bella-oss@weidmueller.com designates 2a01:111:f403:2612::601 as permitted sender) smtp.mailfrom=Michael.Bella-oss@weidmueller.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=weidmueller.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/2] mongoose: use websocket flag of connection struct
|
expand
|
diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c index 4b61acb..09d564e 100644 --- a/mongoose/mongoose_interface.c +++ b/mongoose/mongoose_interface.c @@ -363,7 +363,7 @@ static void broadcast_callback(struct mg_connection *nc, int ev, if (ev == MG_EV_READ) { struct mg_connection *t; for (t = nc->mgr->conns; t != NULL; t = t->next) { - if (t->data[0] != 'W') continue; + if (!t->is_websocket) continue; mg_ws_send(t,(char *)nc->recv.buf, nc->recv.len, WEBSOCKET_OP_TEXT); } mg_iobuf_del(&nc->recv, 0, nc->recv.len); @@ -671,7 +671,6 @@ static void websocket_handler(struct mg_connection *nc, void *ev_data) { struct mg_http_message *hm = (struct mg_http_message *) ev_data; mg_ws_upgrade(nc, hm, NULL); - nc->data[0] = 'W'; } static void ev_handler(struct mg_connection *nc, int ev, void *ev_data, void *fn_data)