Hi,
I've this code:
import net
let socket = newSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
socket.connectUnix("...")
#socket.send("...") - this works every time
var data: string = newStringOfCap(1024)
let rd = socket.recv(data, 1024, 1000) # this one always fails
echo $rd
socket.close()
Run
I'm writing a neovim client in nim and I can send any message, see it getting
processed in the neovim logs and I also see their effects - but I can only
receive negative responses for some reason. Other neovim clients do the _exact_
same thing and they work through unix sockets fine(this is not my first neovim
client). The hasDataBuffered() also reports false every time. What's missing?
Any idea?