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

UnixSocketAddress toString problem #19

Closed
gregw opened this issue Sep 25, 2015 · 3 comments
Closed

UnixSocketAddress toString problem #19

gregw opened this issue Sep 25, 2015 · 3 comments
Milestone

Comments

@gregw
Copy link
Contributor

gregw commented Sep 25, 2015

Using the TestClient and TestServer on

Linux Tile440 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

on the client, printing out address correctly results in:

connected to [family=PF_UNIX path=/tmp/fubar.sock]

but on the server, if you print out the address from

                int n = channel.read(buf);
                UnixSocketAddress remote = channel.getRemoteSocketAddress();
                System.err.printf("%x Read in %d bytes from %s%n",hashCode(),n,remote);

you get output like:

29ee9faa Read in 39 bytes from [family=PF_UNIX path=6�J�]
@gregw
Copy link
Contributor Author

gregw commented Sep 25, 2015

Note that getLocalSocketAddress() provides a correct address (which should be the same as the remote??)

@headius
Copy link
Member

headius commented Mar 8, 2016

Nice...some encoding problem with the test (ed: text) on the server. Perhaps it's trying to treat UTF-8 bytes as though they were UTF-16 or vice versa?

@headius
Copy link
Member

headius commented Sep 28, 2016

Actually, I think this was fixed by 75e0a70.

@headius headius closed this as completed Sep 28, 2016
@headius headius added this to the 0.7 milestone Sep 28, 2016
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