Open kgiusti opened 11 months ago
See https://issues.apache.org/jira/browse/PROTON-2775 for a description of the pn_buffer_t overflow issue.
I'm not sure how the router can prevent this particular crash as it appears to be caused by the downstream proton code attempting to buffer too much data off the incoming network connection. But that "too much data" is over a GByte so the router shouldn't have that amount of outstanding data in flight for a connection.
Ideally the upstream router would place a limit on the amount of outstanding data written to a connection. IIUC this can be done by enforcing a reasonable session window, but we'd have to consider head-of-line blocking and the hard limit of 32K sessions/connection when going down that path.
Running: flimflam run -w builtin -p tcp -r skrouterd --cpu-limit 3 Will consistently result in a SIGSEGV crash on the downstream router (skrouterd-tcp-2.config)