appproxy: failed to write a message: no buffer space available

Hi there,

I am using AppProxyProvider. While doing some speed test, via some web sites, it raised some error like below and the appproxy restart itself.

"app receive buffer is full, queueing *** bytes"
"failed to write a message: no buffer space available"

Good thing is that no crash happens. Wonder what is going on with the TCPFlow: no fast enough to handle incoming data? Any way to avoid that?

Thanks in advance for any suggestion.
Implementing flow control is the easiest way to avoid something like this. For example, do not read again until you write and clear some space, or only buffer a limited amount of data and then cut off all reads etc... Quinn wrote a great article about this called Network Extension Provider Memory Strategy. Lastly, on macOS this should not be an issue, but on iOS there are memory constraints on the Network Extension process.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
appproxy: failed to write a message: no buffer space available
 
 
Q