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

IO::Socket::Async's socket-port and peer-port are incorrect #6541

Closed
p6rt opened this issue Sep 20, 2017 · 3 comments
Closed

IO::Socket::Async's socket-port and peer-port are incorrect #6541

p6rt opened this issue Sep 20, 2017 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Sep 20, 2017

Migrated from rt.perl.org#132135 (status was 'resolved')

Searchable as RT132135$

@p6rt
Copy link
Author

p6rt commented Sep 20, 2017

From @jdv

[jdv@​new-host-2 ~]$ perl6 -e 'start react whenever
IO​::Socket​::Async.listen(<0.0.0.0>,8889) {say $_.socket-port; say
$_.peer-port;}; sleep 1;IO​::Socket​::Async.connect(<0.0.0.0>,8889);sleep
1;say qx{netstat -tan | grep 8889}'
47394
52436
tcp 0 0 0.0.0.0​:8889 0.0.0.0​:*
LISTEN
tcp 0 0 127.0.0.1​:8889 127.0.0.1​:54476
ESTABLISHED
tcp 0 0 127.0.0.1​:54476 127.0.0.1​:8889
ESTABLISHED

[jdv@​new-host-2 ~]$

@p6rt
Copy link
Author

p6rt commented Sep 22, 2017

From @jdv

Just needed some ntohs() calls. See 8e382fb938 in roast
and c71c7781453ad8 in moarvm.

On Wed, 20 Sep 2017 10​:46​:35 -0700, jdv79 wrote​:

[jdv@​new-host-2 ~]$ perl6 -e 'start react whenever
IO​::Socket​::Async.listen(<0.0.0.0>,8889) {say $_.socket-port; say
$_.peer-port;}; sleep 1;IO​::Socket​::Async.connect(<0.0.0.0>,8889);sleep
1;say qx{netstat -tan | grep 8889}'
47394
52436
tcp 0 0 0.0.0.0​:8889 0.0.0.0​:*
LISTEN
tcp 0 0 127.0.0.1​:8889 127.0.0.1​:54476
ESTABLISHED
tcp 0 0 127.0.0.1​:54476 127.0.0.1​:8889
ESTABLISHED

[jdv@​new-host-2 ~]$

@p6rt
Copy link
Author

p6rt commented Sep 22, 2017

@jdv - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Sep 22, 2017
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