This commit is contained in:
Anatoly Galiulin 2016-08-31 12:05:47 +07:00
commit 436a5a01ab

View file

@ -326,7 +326,7 @@ proc sendBuffer*(socket: AsyncSocket, buf: pointer, size: int,
if socket.isSsl: if socket.isSsl:
when defineSsl: when defineSsl:
sslLoop(socket, flags, sslLoop(socket, flags,
sslWrite(socket.sslHandle, cast[pointer](buf), size.cint)) sslWrite(socket.sslHandle, cast[cstring](buf), size.cint))
await sendPendingSslData(socket, flags) await sendPendingSslData(socket, flags)
else: else:
await sendBuffer(socket.fd.AsyncFD, buf, size, flags) await sendBuffer(socket.fd.AsyncFD, buf, size, flags)