-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix communication port duplicate issue #134
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
i raised an request to fix the issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hjliu0206 - thank you for the issue and PR - this is greatly appreciated and a great catch!
I just had a couple comments on naming and signatures.
gateway_provisioners/kernel-launchers/shared/scripts/server_listener.py
Outdated
Show resolved
Hide resolved
gateway_provisioners/kernel-launchers/shared/scripts/server_listener.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already use comm_port
in other locations. Let's consistently use comm_port
throughout. Thanks.
gateway_provisioners/kernel-launchers/shared/scripts/server_listener.py
Outdated
Show resolved
Hide resolved
"""Prepares the socket to which the server will send signal and shutdown requests.""" | ||
self.comm_socket = self._select_socket() | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("0.0.0.0", comm_port)) |
Check warning
Code scanning / CodeQL
Binding a socket to all network interfaces Medium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thank you @hjliu0206
select comm_port and select kernel 5 port maybe duplicated