Open jfromaniello opened 8 years ago
whats the benefit of corking the stream?
as it is today, it generate two writes to the network.
Node seems to call writev each time data is pushed to the piped destination
by corking the socket it just generate one
in my code I have something like this:
I think it will make sense to cork/uncork the target stream for the two pushes or push a concat'ed buffer:
Similar issue in another similar library:
https://github.com/rkusa/frame-stream/issues/4