From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) (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 8EE62469719 for ; Thu, 19 Mar 2020 13:45:31 +0300 (MSK) Date: Thu, 19 Mar 2020 13:45:28 +0300 From: Kirill Yukhin Message-ID: <20200319104528.2y4ltpobwovqrq65@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org Hello, On 12 ноя 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 I've checked your patch into master. -- Regards, Kirill Yukhin