Skip to content

feedback: box.info.listen | Tarantool #2855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
TarantoolBot opened this issue Apr 29, 2022 · 1 comment · Fixed by #3069
Closed
2 tasks done

feedback: box.info.listen | Tarantool #2855

TarantoolBot opened this issue Apr 29, 2022 · 1 comment · Fixed by #3069
Labels
add details [nature] More details needed, some info missing. Documentation is incomplete. reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Apr 29, 2022

Product: Tarantool
Since: 2.10(?)
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/listen/
SME: @

Details

<…>as set with a zero port, box.info.listen will show
a real port. |The address is stored as a string|:

https://www.tarantool.io/ru/doc/latest/reference/reference_lua/box_info/listen/

In T 2.10, the box.cfg.listen parameter can be either a number or a string. Depending on what is specified in the configuration file.

@xuniq xuniq added reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality add details [nature] More details needed, some info missing. Documentation is incomplete. labels May 6, 2022
@xuniq xuniq added this to the Estimate [@xuniq] milestone May 6, 2022
@xuniq xuniq added the 1sp label May 6, 2022
@xuniq xuniq removed this from the Estimate [@xuniq] milestone May 6, 2022
@patiencedaur
Copy link
Contributor

patiencedaur commented Aug 5, 2022

String

If the port number is defined as a string, the behavior in 2.8 and 2.10 is the same.

Tarantool 2.8:

box.cfg{listen="3301"}
box.cfg.listen
---
- '3301'
...

box.info.listen
---
- 0.0.0.0:3301
...

Tarantool 2.10:

box.cfg{listen="3301"}
box.cfg.listen
---
- '3301'
...

tarantool> box.info.listen
---
- 0.0.0.0:3301
...

Number

In Tarantool 2.8, box.cfg.listen stores the port number as a string, even if it was defined as a number.
In Tarantool 2.10, box.cfg.listen returns a number if the port was defined as a number.
The behavior of box.info.listen is the same.

Tarantool 2.8

box.cfg{listen=3302}
box.cfg.listen
---
- '3302'
...

box.info.listen
---
- 0.0.0.0:3302
...

Tarantool 2.10

tarantool> box.cfg{listen=3302}
---
...

tarantool> box.cfg.listen
---
- 3302
...

tarantool> box.info.listen
---
- 0.0.0.0:3302
...

patiencedaur added a commit that referenced this issue Aug 5, 2022
p7nov pushed a commit that referenced this issue Aug 11, 2022
* Provide links to Lua and LuaJIT data types

Resolves #1318

* Replace wrong link to Lua 5.2 with correct to Lua 5.1

Resolves #1321

* Provide a more relevant link to Lua table manual

Resolves #1785

* Add msgpack.NULL to data types table

Resolves #927

* Add a sharded space example

Resolves #2474

* Clarify box.cfg.listen value type

Resolves #2855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add details [nature] More details needed, some info missing. Documentation is incomplete. reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants