I wrote a very dumb transparent proxy. The extension simply sends data to a daemon, and that daemon sends network data back to the proxy. It worked with small test connections, and I was fairly pleased.
Then I tried transferring a ~4mbyte file (using curl), and it got a way in, and then the daemon did a network read of something like 400kbytes, and went to send that to the extension, and the flow.write
method never called the completion handler.
If I limit the read size to 64k max, it works.
The most frustrating thing is I don't see any logging information related to it, so I can only guess what's going on.
Any ideas, thoughts, or clear stupidities on my part?