From owner-freebsd-questions@freebsd.org Wed Sep 26 18:43:15 2018 Return-Path: Delivered-To: freebsd-questions@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 613F010B3DFB for ; Wed, 26 Sep 2018 18:43:15 +0000 (UTC) (envelope-from rlwestlund@gmail.com) Received: from mail-yw1-xc35.google.com (mail-yw1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) (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 F225189ACC for ; Wed, 26 Sep 2018 18:43:14 +0000 (UTC) (envelope-from rlwestlund@gmail.com) Received: by mail-yw1-xc35.google.com with SMTP id m129-v6so7175ywc.1 for ; Wed, 26 Sep 2018 11:43:14 -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=2tIYMActCUIuDES1jub7rGWEdmQZYIAq7WcHqMpgpY8=; b=bGgQFiaB34mNJXtpLDt+BmBeEt7Fipk5vyX/E8yVzRrAWxR7Kiaudq2F7ZwZYXSfM9 uR5TgS+hTrU6bjHZ8V1LE9eUna3WD0MzIvRI6QwyRyNAliuD9siZoAxQVSdSYWye/ikb CmbWAEIUzhoDirDjOJNGrKrz/ZQEf1S3ia5+q4y2wA2kkgS4IqEvwWBuKdNFj27tZuoi QTF/16tEFafhcodRzfobuRtb9KAN3h1ZMEr50oF9r+Ua5nmdjloBaVNMg4jn2M0KYGTf exMX83qPRhgGeIFmjd/6koA4ox1j4DypUj5AFlrS5n7/qYj0E4E1pA4QKrJBCmUKgbYc h66Q== 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=2tIYMActCUIuDES1jub7rGWEdmQZYIAq7WcHqMpgpY8=; b=q4Qyy+/mkYYbv0mQanmJxspbRncmvPtb9eug0EFD8SV2NdxZYdeOCd6xSgk6Qj0W1V 2ZIkUBv2wFPDOhGln6ZAXL2AqL8t2/E3CHy+blTs3Wtac0imJ476/eGWI/WsUYIvfgRA CmpXqc1mGOxLN1da1T2jVU7aX+8h4KOlsCOPWh1Be41cVgtYnthxc0sQDCm8+Y3r45EM BaxfVEcULGMzluJoneIduod3hjTyQCRTNT+d4KH8E8aE9vyNa3MsNMf2MsJe6vR/OCrP 5LZJMK6WmQe/lUTKARFeRw1jYyP5HJhScJr6pJ/v4DaoOKw2OiXBWUIljS3NDrvrhhKL +bHQ== X-Gm-Message-State: ABuFfohK0njH1xFacEiXhIOSUZFn1b6gXR4Yeok0dlnmOLHyOvokOnl0 Si0mjRMwt9QqAxlAM/BC0ko7Nc8fRX97iGAweDcZiQ== X-Google-Smtp-Source: ACcGV601lJrSBFcbsgt0lZbBxVV6PIjHSrg6jpkgsh0RNOVTOu88+z3EHzLmC/ia6wLZF7KXaDUTn8JSiTEEce8eSNc= X-Received: by 2002:a0d:e3c3:: with SMTP id m186-v6mr3812240ywe.317.1537987394235; Wed, 26 Sep 2018 11:43:14 -0700 (PDT) MIME-Version: 1.0 From: Ryan Westlund Date: Wed, 26 Sep 2018 14:43:02 -0400 Message-ID: Subject: How to not keep tcp connections alive after they're done To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2018 18:43:15 -0000 I'm working on a project that runs a webserver from inside a freebsd jail. If I try to stop the jail shortly after a user logs in (which uses their google account), the jail stops, but fails to unmount the filesystem with "device busy". We think it's caused by the kernel keeping alive the connections to google's server after they're done. If I wait about 90 seconds after the login, I can unmount the file system successfully. But is there a way to make the kernel drop these connections after they're done?