Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRYwJ-002Bl4-6M for pgsql-jdbc@arkaria.postgresql.org; Thu, 03 Aug 2023 14:04:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qRYwH-00Duc6-Mz for pgsql-jdbc@arkaria.postgresql.org; Thu, 03 Aug 2023 14:04:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRYwH-00Duby-Ea for pgsql-jdbc@lists.postgresql.org; Thu, 03 Aug 2023 14:04:29 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qRYwE-000LaS-KO for pgsql-jdbc@postgresql.org; Thu, 03 Aug 2023 14:04:29 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b703a0453fso15426221fa.3 for ; Thu, 03 Aug 2023 07:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691071465; x=1691676265; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AKyjvEQo4qRzg8muorL7rrDi21iak9apEoRlbx0Zd/I=; b=ENhdJUNo9XaBWApe7AcLZ4J1xzb7sODRj1SbKpNQYxqRm5B84YsiWGSgQXK62rNV1p Qg4RBSGgxLL0/JH7kp3tYGwjPEhytp3wrPABR/C8U0YQAidBeEjjk4IWVIIK7Zhf8hoa FAKqroQTsSve5EvxU13PPIEsngC/xPTYI/Wosh4qeiDA/+qs3k4a6sRVvDyo+TyXb5a0 FBsBj0GK7qdg5uvnkLH0Bf/mvVpd1C46ebtJfRm6rCIiXgxPdQbkBgnk9v5A0iiYKpmG uJFEhesy3czjA+6Aapk89P6LOHGEfCre/SCetyjVMi/I/gnjv/JmMX5MkF2NOZrW03sz S+WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691071465; x=1691676265; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AKyjvEQo4qRzg8muorL7rrDi21iak9apEoRlbx0Zd/I=; b=ZsKcKavcA+A5A1T6J7gffjuO4W68lS1wrGIFyGXZ0geUktZHBvgEv5KOHGMmDY0XEr ph4hxXuIYp91YhNhxSUU8VloFIZSW1RcfV2q8z8Bgcy5JU1xLlkbVWrsVgEAkLebGOYU AMI8xRC1IvrkNXK6peIqQWtTQhTTmNNSKMHOg4jQNXyzUfriLxJA6bbrHljyamaZjnRX SzRtL1FqQ7x+9G0+CMP9DpL8lGbglwDHl16LPM71/dKWV0DzKMiT1hEz8+x7cYrNM7N3 Ct0CXTDYwxGggXYJJuGTP5yOfpKsu3+nu6rUTUuuvFHP3gc97ah5ezcgFK2LUv0H6CKJ yaQw== X-Gm-Message-State: ABy/qLY+wnPbIp8ebc65nCE//j1NrEsv5Sw62GMivF+YQxpBJozHMiN1 IK9NS/Ewr7IA+ouKVpvXgY2xZg7zTQ0siYwfWg41O9Sihmw= X-Google-Smtp-Source: APBJJlE+KgFFTjGrBS7O07MU/7OCvh8l2IL//rCAhRFkx8un6+6Mszv75erQWgxFDRqKAVT2h958PLgd3CaNslPvzJg= X-Received: by 2002:a2e:9ec1:0:b0:2b9:aa4d:3729 with SMTP id h1-20020a2e9ec1000000b002b9aa4d3729mr7921750ljk.28.1691071464748; Thu, 03 Aug 2023 07:04:24 -0700 (PDT) MIME-Version: 1.0 From: Pawel Veselov Date: Thu, 3 Aug 2023 16:04:08 +0200 Message-ID: Subject: PGConnection.getNotifications(0) doesn't block To: List Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello. I'm implementing a bit that is expected to wait for published channel notifications, and once there are any - process them. I'm using PGConnection.getNotifications(0), but that immediately returns an empty array, and doesn't block like JavaDoc says it should. I'm on 42.6.0. What am I missing? Thank you.