secchan: Don't let queued packets exhaust memory.
authorBen Pfaff <blp@nicira.com>
Fri, 1 May 2009 20:20:07 +0000 (13:20 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 1 May 2009 20:20:34 +0000 (13:20 -0700)
commite40e39d67f8e6ff49c46ecdd91cebbb94be353c8
tree4c198927015d859c24d59a5751d8ad25dca076a1
parente791965dfd886f3adb76c3080373d5f0d61cb237
secchan: Don't let queued packets exhaust memory.

The ofproto code was queuing OpenFlow messages to connections without
limiting the maximum number that could be queued at a time.  Thus, the
backlog could grow without bound and exhaust all system memory.

This commit introduces a cap on the maximum number of queued messages
in two different categories: packet-in messages and replies to OpenFlow
requests.
lib/rconn.h
secchan/ofproto.c