Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7oE5-0004b3-9Q for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jan 2022 00:44:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7oE3-0004Fk-6X for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jan 2022 00:44:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7oE2-0004Fa-TS for pgsql-hackers@lists.postgresql.org; Thu, 13 Jan 2022 00:44:22 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7oDw-0006BI-15 for pgsql-hackers@postgresql.org; Thu, 13 Jan 2022 00:44:22 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id A17D33201D2B; Wed, 12 Jan 2022 19:44:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 12 Jan 2022 19:44:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=VFlv38cbDnMtVr8D62+aeDoMahV iIuaVfgrVjuTwW6I=; b=DYSMPC3Iiz9IU5CXcvPtrnsOuQuzil7uBAbSG5zLZaT xihE4VBPb4c/Z2UzrxIvv6hY1J0edRUuBAFpAg/D/q4jQYTPg1MWwhNqXEa62rwS hwDDHh1EolEAW5ow6URsKhSP955V4z24B+BWkJSjq7IC0l2UbVKtDYkT0O/H3fe9 nIyUpkd1FK2zqs0+2/vL5L6El8PnJOvLvIU46CDdeue3pW1PCw5d9oAInOANnwGa JQ5X10rQ5TRGlPcb/jkeOahdPmoLsjs0S1jEQyJN4Zi/rqAueaeV2UQQmgd736tO iP1Tdg1qrIpxCyJKZYmO7P5WG53Wb+UrWhAASOPRqHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=VFlv38 cbDnMtVr8D62+aeDoMahViIuaVfgrVjuTwW6I=; b=cpbZ1J8wCs+JvHmnRixirb o/6W/iLYP0btTBFFsGVeGaAWzQ7VDISsjP24MKvij0GIOQPSqIPa3VmSaAPCMSb0 6K4WtR+Hpe+/qZ8dDiNGOHYcVwByiGh5XEm+UQPhPZ9wBgpmQopNnEmlqgmo+Rpa QshOcd25PL/KOmugkYQE7xY1ExpvSNYBAhSiL7uk7B7dZ0xYPoG88ILYHtdB3KSK j+jaPJdXxs4VdGXKn0KeRHHsaFPR4L0H4Vx/4Jz2SJMBVy0Fd6V8aCOQDYY4rXad z3VRheXvJTcaVuxu9wrkP+LHQdShNR+AuuXvLrPnaoeHsQv9VI9FLBaGlpKYyz8w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtddvgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepvefhjeevhedvvdfgtdeufeeuhffhteekgfeftdekhfeiuedufeevudffudfg vdegnecuffhomhgrihhnpegtihhrrhhushdqtghirdgtohhmnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigv lhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jan 2022 19:44:12 -0500 (EST) Date: Wed, 12 Jan 2022 16:44:11 -0800 From: Andres Freund To: Jelte Fennema Cc: "pgsql-hackers@postgresql.org" Subject: Re: Add non-blocking version of PQcancel Message-ID: <20220113004411.3tdgiqdmmo4musb5@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-01-12 15:22:18 +0000, Jelte Fennema wrote: > This patch also includes a test for this new API (and also the already > existing cancellation APIs). The test can be easily run like this: > > cd src/test/modules/libpq_pipeline > make && ./libpq_pipeline cancel Right now tests fails to build on windows with: [15:45:10.518] src/interfaces/libpq/libpqdll.def : fatal error LNK1121: duplicate ordinal number '189' [c:\cirrus\libpq.vcxproj] on fails tests on other platforms. See https://cirrus-ci.com/build/4791821363576832 > NOTE: I have not tested this with GSS for the moment. My expectation is > that using this new API with a GSS connection will result in a > CONNECTION_BAD status when calling PQcancelStatus. The reason for this > is that GSS reads will also need to communicate back that an EOF was > found, just like I've done for TLS reads and unencrypted reads. Since in > case of a cancel connection an EOF is actually expected, and should not > be treated as an error. The failures do not seem related to this. Greetings, Andres Freund