Description
In SocketStream#read, the ByteBuf is not released if an exception is thrown. As a result the buffer will be GC'd but will not be returned to the buffer pool. This is a performance issue, but also a correctness issue, as it will result in a permit never being released. Eventually, an application could run out of permits (although currently there are Integer#MAX_VALUE permits available so it's unlikely.