From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id D36DE4C883; Wed, 13 Jan 2021 22:59:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D36DE4C883 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1610567986; bh=Fb332tdjbX3B7bZM8J0pttSR3wgNg5Bf7xw7ptrE248=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Rxfa1sLcbGGSvOeDHWtUFT/IE3DIShrxz+pCCOR3E1w/TOJMj10XgWPrxeedJy6LY NllJ0AAanTZfvk45b/uPnTO3kgtC52++rMDObySLD73f42sV/JET5VxmnvX+1JsTVs lpGuH+tTSJ8CEf+zLzrK9w34uROQ6Y7hxtqZgHwM= Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 5BBA14C883 for ; Wed, 13 Jan 2021 22:59:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5BBA14C883 Received: by mail-lj1-f175.google.com with SMTP id x23so3933233lji.7 for ; Wed, 13 Jan 2021 11:59:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YfbNlFqNUmT/bChXNRQiQtXQYa2fK9WujtAXq9gLjag=; b=CulVMgq+Bc/X81VKS/7ozxeZdDoDf/+b4A/EHydKxkpEu6jYJBbeZYb+wBnzSFjrls PLaSnErf1eeA2prP0iPIcVCGewBz4pd0flohGvQw/cDL7cPhbn+IWkPMgLdoxz4ZU++Y AIKgXQmRWto5OuKcsBnqWUZaxatlEXgJeUA2HwavHbiJQrUIK8BVnmIBlzKOjdTI2WaE 69N9f+xZoQ9+N4zZSbFUUEkV8NNcGiLiE6whoQ9GciI8OulIR9HEXHttpRXWA5/r7ARx GLf1fvT2gm01OlQ5BJtBObv0Odp/dx2b7gT7rDUR/2ppkuXoa/99UVyfuyKqbFzrIz37 McCw== X-Gm-Message-State: AOAM533OQqQe4fBaln+TBSUAhMN1zBOCjb8q9wCBVXhR4GIoNTmmCT2X Wblkyoba2RIfdCMciSsIBiEIrwT/jUM= X-Google-Smtp-Source: ABdhPJzZ64ItQ9yg6km3G+Qr5HoZ2m7Gbu6fYR8esI5X9X4/Z4s3TYIqwnpZaoAo/a3hUfV7CxUDKA== X-Received: by 2002:a2e:a364:: with SMTP id i4mr1631266ljn.426.1610567984138; Wed, 13 Jan 2021 11:59:44 -0800 (PST) Received: from grain.localdomain ([5.18.91.94]) by smtp.gmail.com with ESMTPSA id z23sm305509lfi.1.2021.01.13.11.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 11:59:43 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 7322A560053; Wed, 13 Jan 2021 22:59:42 +0300 (MSK) Date: Wed, 13 Jan 2021 22:59:42 +0300 To: Sergey Bronnikov via Tarantool-patches Message-ID: <20210113195942.GD171842@grain> References: <21efa7345344e8ecbe09d2b55e33f876d30b65cd.1610526975.git.estetus@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21efa7345344e8ecbe09d2b55e33f876d30b65cd.1610526975.git.estetus@gmail.com> User-Agent: Mutt/1.14.6 (2020-07-11) Subject: Re: [Tarantool-patches] [PATCH v1 3/4] test: enable SO_REUSEADDR on socket in httpd.py X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: alexander.turenko@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Wed, Jan 13, 2021 at 11:48:34AM +0300, Sergey Bronnikov via Tarantool-patches wrote: > From: Sergey Bronnikov > > TL;DR httpd.py warns that port is busy when restart server. With socket > option SO_REUSEADDR it allows to restart httpd.py without problem. > > Socket option SO_REUSEADDR tells the kernel that even if this port is > busy, go ahead and reuse it anyway. If it is busy, but with another > state, you will still get an address already in use error. It is useful > if your server has been shut down, and then restarted right away while > sockets are still active on its port. Ack. We've been using same techique for criu tests.