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

getresources() shows non-listening TCP port as in use #68

Open
choksi81 opened this issue May 30, 2014 · 1 comment
Open

getresources() shows non-listening TCP port as in use #68

choksi81 opened this issue May 30, 2014 · 1 comment
Assignees

Comments

@choksi81
Copy link
Contributor

When I use a TCP port as the source port on an outgoing connection, i.e. a connection I initiated, I can still listen for a (different) incoming connection on the same port. Things absolutely are supposed to work like this.

But why does getresources() have that port in the "used" dictionary if I only use it as outgoing (but not listening) port? What can I learn about network ports from the "used" dict that I can't from try:/except:ing my way through the list of ports that are assigned to my vessel?

@choksi81 choksi81 self-assigned this May 30, 2014
@choksi81
Copy link
Contributor Author

choksi81 commented Jun 2, 2014

Replying to albert:
When I use a TCP port as the source port on an outgoing connection, i.e. a connection I initiated, I can still listen for a (different) incoming connection on the same port. Things absolutely are supposed to work like this.
But why does getresources() have that port in the "used" dictionary if I only use it as outgoing (but not listening) port?
Perhaps there should be a separate list with this information (or related things)? Would you like to propose a modified interface of some sort?
What can I learn about network ports from the "used" dict that I can't from try:/except:ing my way through the list of ports that are assigned to my vessel?
getresources is intended to be a much more efficient way to do this.

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

1 participant