remove debug output

This commit is contained in:
Christian Ulrich 2020-08-23 12:49:06 +02:00
parent 80c2c50d26
commit 0f622c0953
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
2 changed files with 0 additions and 2 deletions

View File

@ -91,7 +91,6 @@ proc asyncSendMsg*(fd: AsyncFD, data: string,
cmsgHeader.cmsg_type = cmsg.msgType.int32 cmsgHeader.cmsg_type = cmsg.msgType.int32
copyMem(CMSG_DATA(cmsgHeader), cmsg.data.cstring, cmsg.data.len) copyMem(CMSG_DATA(cmsgHeader), cmsg.data.cstring, cmsg.data.len)
cmsgHeader = CMSG_NXTHDR(addr msg, cmsgHeader) cmsgHeader = CMSG_NXTHDR(addr msg, cmsgHeader)
echo "cmsgHeader = ", cast[int](cmsgHeader)
let res = sendmsg(sock.SocketHandle, addr msg, 0) let res = sendmsg(sock.SocketHandle, addr msg, 0)
if res < 0: if res < 0:

View File

@ -26,7 +26,6 @@ type ControlMessage* = object
data*: string data*: string
proc getFd*(cmsg: ControlMessage): AsyncFD = proc getFd*(cmsg: ControlMessage): AsyncFD =
echo "cmsg.data.len: ", cmsg.data.len
if cmsg.level != SOL_SOCKET or if cmsg.level != SOL_SOCKET or
cmsg.msgType != SCM_RIGHTS or cmsg.msgType != SCM_RIGHTS or
cmsg.data.len != sizeof(AsyncFD): cmsg.data.len != sizeof(AsyncFD):