You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code sends hello from a client thread to a server thread over a UnixSocketChannel, and the server prints out the character codes (pardon my Scala)
If you uncomment the new Thread(() => println(in.read())).start(), the out.write("hello\n".getBytes) appears to never make it to the server thread, and nothing is printed. It appears blocking on the UnixSocketChannel's in.read() also disables out.write. Not sure if this is expected or a bug, but another socket library I tried https://github.com/sbt/ipcsocket appears to allow writes while some other thread is read-blocked
The text was updated successfully, but these errors were encountered:
The following code sends
hello
from a client thread to a server thread over aUnixSocketChannel
, and the server prints out the character codes (pardon my Scala)If you uncomment the
new Thread(() => println(in.read())).start()
, theout.write("hello\n".getBytes)
appears to never make it to theserver
thread, and nothing is printed. It appears blocking on theUnixSocketChannel
'sin.read()
also disablesout.write
. Not sure if this is expected or a bug, but another socket library I tried https://github.com/sbt/ipcsocket appears to allow writes while some other thread is read-blockedThe text was updated successfully, but these errors were encountered: