From owner-freebsd-ports@freebsd.org Tue Oct 23 03:53:06 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D04B3FFF1BC for ; Tue, 23 Oct 2018 03:53:06 +0000 (UTC) (envelope-from jongsung.kim@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 693CA86C3A for ; Tue, 23 Oct 2018 03:53:06 +0000 (UTC) (envelope-from jongsung.kim@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 2ED27FFF1BA; Tue, 23 Oct 2018 03:53:06 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7979FFF1B9 for ; Tue, 23 Oct 2018 03:53:05 +0000 (UTC) (envelope-from jongsung.kim@gmail.com) Received: from mail-it1-x134.google.com (mail-it1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 868CD86C38; Tue, 23 Oct 2018 03:53:05 +0000 (UTC) (envelope-from jongsung.kim@gmail.com) Received: by mail-it1-x134.google.com with SMTP id c85-v6so294171itd.1; Mon, 22 Oct 2018 20:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=h87ByzPHj0HMaeIsCCJoqxkAXUNyO2+boogGItGmoUI=; b=Efer9xq+eCHmwHtF79FPfBM4Xji8nzjgbkOO6puBQz9MHNp9cd/1K6GfehZbXk6lGH Xhjnw6k26wH0yeYvbX/uG6f1qkLyCp4gtx37L5tbeZUUHSgRV1ncrBtTJRxgu+MYBtEI 4zV7xehWXN0SO+lYgK51Ogvm23a4whpfQxSImd9Ie9efR0t5mqcSSS57/b6gySJQlqHB MoNS7/oFk62yPYMC5lpBhXK0rx10STMWyu7eujhY1xjVfk02f2QDq8XuXPSWT+gS+FnY OyMzdxGDAMEF7sq1EmMI0g9pgc1IKIHd9B7I0MU7lPciVoll1OH4BAMTayw2qbl4D1ZS NQ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=h87ByzPHj0HMaeIsCCJoqxkAXUNyO2+boogGItGmoUI=; b=DouDN3CSgVA7mT9iiZhWiHQB2e2Ln0rlrhDyS59/kEx/rsHrToEjnygCZ5Iu0kdrQh JB2LGKohoT+Ch8M5F++BlmklBwTiDJJrKGYRJV1vNJoI5M5SaI9Hhuqx4C5nSFgyp5fj WpHPLdGot/67nt8nAeVc9fvzLmm3JW6g4pnit1wnXnFR9DhVAdhsB0sdD6uokFGL09kG BJR37gZs/uITnR2eJ9zd27YWcmiJTsgjgGvVh4vPbmBASvy/540wjfTWfKbsPveLGW2J A6FWuQybYeLAOEGQOBSfpj7qh5MdjBdHpV8Xmyuhwo2lW08r3mKoCSXR6GxoW4wFR2EM oXsA== X-Gm-Message-State: ABuFfohoidqkScFaO54clOVJfJnXbSaRc4sC3DwzLnnyPSfhe9s+s0Im CtDkCpCJyMy+ry7sqxpANLNPEpJAy3jhqHMrXFOEVJ3L X-Google-Smtp-Source: ACcGV61AXoaJ92yP0d7sUuq7u635R2CAaKbQJvm5m4KDFn1HNolb/OT4MYVeaZV/TGKtXCRAUOiwHOkoz6Tt84T9p8Y= X-Received: by 2002:a24:bc44:: with SMTP id n65-v6mr12197210ite.102.1540266784738; Mon, 22 Oct 2018 20:53:04 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?6rmA7KKF7ISx?= Date: Tue, 23 Oct 2018 12:52:53 +0900 Message-ID: Subject: multimedia/tvheadend cannot service live TV after upgrading v4.2.7 To: =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= , ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2018 03:53:07 -0000 Hi decke, tvheadend v4.2.7 has a merged commit 3895c923a FreeBSD: Fix recv problem if no data received, which touches my previous merged commit 0d5c8efee tcp: fix tcp_socket_dead() for FreeBSD. It makes the FreeBSD port of tvheadend unable to service live TV, and reverted from the mainline. (f08bbef11 Revert "FreeBSD: Fix recv problem if no data received.") Please apply this reverting patch: commit f08bbef11c77a6a81d4e2bf974e36e54b0cd14d6 Author: Jaroslav Kysela Date: Tue Oct 16 16:51:00 2018 +0200 Revert "FreeBSD: Fix recv problem if no data received." This reverts commit 3895c923a3a959da05080831b8146c09ed143b00. diff --git a/src/tcp.c b/src/tcp.c index d15b4381f..5349784a4 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -454,11 +454,8 @@ tcp_socket_dead(int fd) if (err) return -err; #ifdef PLATFORM_FREEBSD - err = recv(fd, NULL, 0, MSG_PEEK | MSG_DONTWAIT); - if (err < 0) + if (recv(fd, NULL, 0, MSG_PEEK | MSG_DONTWAIT) < 0) return -errno; - else if (err == 0) - return -EIO; #else if (recv(fd, NULL, 0, MSG_PEEK | MSG_DONTWAIT) == 0) return -EIO; Thank you JS