add buffer to protocol pipe

@aniket486 @rangadi This is the fix to allow for bad incoming thrift records