cloudstack/utils
Sheng Yang 227b03fd93 bug 4387: Add maximum limit to the packet, prevent OOME
The OOME is due to when server reading the data, it would try to adjust the
reading buffer size according to the "packet length" it read. But if the "packet
length" is some random numbers, server would still try to allocate a part of
very big memory for the reading buffer, result in OOM.

This patch add a 64k limit to sending/receiving the packet. It's the maximum
length one IP datagram can support, and we don't think the request can exceed
this limit. Even if exceed the limit in normal condition, we would aware of it
due to the exception.

Solution has been verified using wget and telnet.

status 4387: resolved fixed
2011-04-15 15:28:43 -07:00
..
bindir If git build sccs file is present, catenate it to standard output with these brand new commands 2010-08-11 18:14:55 -07:00
conf Source code committed 2010-08-11 09:13:29 -07:00
src bug 4387: Add maximum limit to the packet, prevent OOME 2011-04-15 15:28:43 -07:00
test add support to run scripts on usage DB 2011-04-05 16:11:02 +05:30
.classpath Fix Eclipse project settings for separation of JUnit 2011-02-17 09:55:05 -08:00
.project Source code committed 2010-08-11 09:13:29 -07:00