From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [94.100.177.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 55549440F3C for ; Wed, 13 Nov 2019 03:25:59 +0300 (MSK) From: Vladislav Shpilevoy References: Message-ID: Date: Wed, 13 Nov 2019 01:32:07 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH 1/1] iproto: show real port in logs and box.info.listen List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, kostja.osipov@gmail.com, alexander.turenko@tarantool.org Sorry, forgot a test. Will add tomorrow. On 12/11/2019 23:03, Vladislav Shpilevoy wrote: > Box.cfg{listen = 0} automatically chooses a port. But it was > impossible to learn a real port the instance is bound to. > > An ability to see a real port may help to make test-run more > robust, because it won't depend on which ports are free, and > won't need to pre-choose them in advance. > > Now box.info.listen shows a real address, or nil when listen is > turned off. Also a real address is logged instead of the dummy > 0-port one. > > Closes #4620 > > @TarantoolBot document > Title: box.info.listen - real address > > New value in box.info - listen. It is a real address to which the > instance was bound. For example, if box.cfg.listen was set with > a zero port, box.info.listen will show a real port. The address > is stored as a string: > > - unix/: for UNIX domain sockets; > - : for IPv4; > - [ip]: for IPv6. > > If the instance does not listen anything, box.info.listen is nil. > --- > Branch: https://github.com/tarantool/tarantool/tree/gerold103/gh-4620-show-listen-port > Issue: https://github.com/tarantool/tarantool/issues/4620 >