NWConnection send buffer and when to send more data

It was my understanding that it is ok to blindly send more data from the completion handler of the connection send() method. I've been testing this and the connection will enqueue enormous amount of data in-memory (gigabytes) and still happily call the completion handler for more.

Seems like this is not the way to go, but then, how would I know when it is ok to send more data on the connection?

Thank you Quinn. It is at least good to have confirmation and know where I can stand. Good to hear you plan to fix it soon as well, even though I have to work with it for now.

I have had other issues with custom framers as well (FB9405024, FB9430130). Hopefully the tech will eventually mature and I can use it again.

NWConnection send buffer and when to send more data
 
 
Q