On Wednesday, March 21, 2018 at 1:42:03 PM UTC-5, CM wrote: > > > Well, it isn't about committing memory upfront -- ring buffer will have > it's memory preallocated. It is about being able to reuse memory as soon as > possible. I.e. it would be nice to be notified that first 100kb (of my 1MB > write request) is already written out and I can reuse related memory. >
To be more precise -- I wonder if you can get "gradual" buffer write notifications. I.e. as OS "drains" my buffer (writes it out to the network) I'd like to receive notifications indicating how much of the buffer was written out. Is this possible with libuv (or Windows IOCP)? I guess I could emulate this behavior by submitting multiple write requests (lets say 1kb each) and processing related callback calls. It is a bit inconvenient, though -- it requires allocating memory for each request and other "administrative" expenses. -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
