diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-10 22:52:13 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-10 22:54:31 +0100 |
commit | c4f0423e1a786fef840fd2f8c5c6bba550b353ab (patch) | |
tree | 9eb8007ca3af03f466dd3eedbb1e8b7e29e8ff94 /src/loader/request.nim | |
parent | d8c4b0979c6d1ff9f6edea650e3aeb1ca1e4a104 (diff) | |
download | chawan-c4f0423e1a786fef840fd2f8c5c6bba550b353ab.tar.gz |
loader: fix tee
My eyes are bleeding, but at least there is a chance that this does what I wanted. The previous tee implementation mixed buffer and loader fds, so it was fundamentally broken. Also, it used MultiStream which makes asynchronous streaming impossible. This time we use a flat array of output handles and link to them any buffers not written to the target yet.
Diffstat (limited to 'src/loader/request.nim')
-rw-r--r-- | src/loader/request.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/loader/request.nim b/src/loader/request.nim index a91731bb..805345f3 100644 --- a/src/loader/request.nim +++ b/src/loader/request.nim @@ -80,6 +80,8 @@ type credentialsMode* {.jsget.}: CredentialsMode proxy*: URL #TODO do something with this canredir*: bool + clientFd*: int + clientPid*: int ReadableStream* = ref object of Stream isource*: Stream |