diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-21 02:03:18 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-21 02:06:19 +0100 |
commit | 1d660ce00967c2a457158eae85dd82247c2ae396 (patch) | |
tree | 76a7bd72959103ae04d3b472ef5e21fd428b5ad5 /src/local/client.nim | |
parent | 17969768a30467c2f873a51178aea1428f83f4bc (diff) | |
download | chawan-1d660ce00967c2a457158eae85dd82247c2ae396.tar.gz |
buffer: also buffer input reads
this is buffer reading from pager
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index d41fa0d9..8e29bdc6 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -422,7 +422,11 @@ proc acceptBuffers(client: Client) = outCacheId = loader.addCacheFile(item.ostreamOutputId, pid).outputId loader.resume(@[item.istreamOutputId, item.ostreamOutputId]) # pass down fdout - container.setStream(stream, registerFun, item.fdout, outCacheId) + stream.sendFileHandle(item.fdout) + stream.withWriter w: + w.swrite(outCacheId) + discard close(item.fdout) + container.setStream(stream, registerFun) else: # buffer is cloned, no need to cache anything container.setCloneStream(stream, registerFun) |