Skip to content
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

Printing port when connecting by Unix domain socket #68

Open
margdoc opened this issue Jan 25, 2024 · 1 comment
Open

Printing port when connecting by Unix domain socket #68

margdoc opened this issue Jan 25, 2024 · 1 comment

Comments

@margdoc
Copy link

margdoc commented Jan 25, 2024

When connecting to the scylla node using the following command:

cqlsh /home/margdoc/Workspace/scylla/workdir/0/cql.m 

the first line of the output is:

Connected to  at /home/margdoc/Workspace/scylla/workdir/0/cql.m:9042

cqlsh prints the default port on which it connects to the scylla node but doesn't use it when connecting by maintenance socket.

@fruch
Copy link
Collaborator

fruch commented Jan 25, 2024

it's teaching this function

def show_host(self):

of a diffrent option probably the same trick used in the commit introducing the unix socket support

stat.S_ISSOCK(os.stat(self.hostname).st_mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants