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
procsendFileStreamHandler(api: DaemonAPI, stream: P2PStream) {.async.} =
{.gcsafe.}:
var name: stringvar length: intwhiletrue:
var line =await stream.transp.readLine()
if line =="":
continuevar parts = line.split(":")
name = parts[0]
length = parts[1].parseInt
var buffer =newString(length)
await stream.transp.readExactly(buffer[0].addr, length)
writeFile(name, buffer)
discardawait stream.transp.write"received\r\n"
The text was updated successfully, but these errors were encountered:
gogolxdong
changed the title
Memory exhausts rapidly when writing with --gc:arc
Memory exhausts rapidly when writing with --gc:arc on Windows10
Jan 22, 2021
gogolxdong
changed the title
Memory exhausts rapidly when writing with --gc:arc on Windows10
Memory exhausts rapidly when writing/reading with --gc:arc on Windows10
Jan 22, 2021
gogolxdong
changed the title
Memory exhausts rapidly when writing/reading with --gc:arc on Windows10
Memory exhausts rapidly when closing stream after writing/reading with --gc:arc on Windows10
Jan 27, 2021
Tried
The text was updated successfully, but these errors were encountered: