I thought framed transports were the way to avoid those cases. On Dec 1, 2012 10:20 AM, "oliver z (JIRA)" <[email protected]> wrote:
> oliver z created THRIFT-1770: > --------------------------------- > > Summary: Killing a thrift 0.8 server with telnet > Key: THRIFT-1770 > URL: https://issues.apache.org/jira/browse/THRIFT-1770 > Project: Thrift > Issue Type: Bug > Reporter: oliver z > Priority: Critical > > > I have a thrift 0.8 server running which is very easy to kill from outside > of the network. Simply telnet to it and type some random chars in it like > "asdf" - thats enough to kill the server with a OOM exception: > > 10:12:40.461 [Thread-1] [ERROR] o.a.t.server.THsHaServer - run() exiting > due to uncaught error > java.lang.OutOfMemoryError: Java heap space > at java.nio.HeapByteBuffer.<init>(Unknown Source) ~[na:1.7.0_04] > at java.nio.ByteBuffer.allocate(Unknown Source) ~[na:1.7.0_04] > at > org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.read(AbstractNonblockingServer.java:338) > ~[libthrift-0.8.0.jar:0.8.0] > at > org.apache.thrift.server.AbstractNonblockingServer$AbstractSelectThread.handleRead(AbstractNonblockingServer.java:202) > ~[libthrift-0.8.0.jar:0.8.0] > at > org.apache.thrift.server.TNonblockingServer$SelectAcceptThread.select(TNonblockingServer.java:198) > ~[libthrift-0.8.0.jar:0.8.0] > at > org.apache.thrift.server.TNonblockingServer$SelectAcceptThread.run(TNonblockingServer.java:154) > ~[libthrift-0.8.0.jar:0.8.0] > > I guess its pretty related to > https://issues.apache.org/jira/browse/THRIFT-602 > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators > For more information on JIRA, see: http://www.atlassian.com/software/jira >
