prevent OOME if random data is sent to nimbus thrift port
Merge branch 'thrift-oom'