ipcsocket icon indicating copy to clipboard operation
ipcsocket copied to clipboard

calling toString() on a connected UnixDomainSocket returns Socket[unconnected]

Open inieves opened this issue 3 years ago • 1 comments

I noticed that UnixDomainServerSocket returns useful information on a call to toString(), but it's friend UnixDomainSocket does not return useful information, it actually returns incorrect information: Socket[unconnected]

More useful and correct output would be the path that was used to create the socket.

I have not tested the Win32NamedPipeSocket but I suspect a similar issue would occur.

inieves avatar Mar 23 '22 19:03 inieves

I guess toString is coming from the Socket class? Here's a PR to try to fix this - https://github.com/sbt/ipcsocket/pull/44

eed3si9n avatar Sep 05 '24 01:09 eed3si9n