Fixes NPEs thrown when processing large binary messages.
Work around Buffers.copy() bug
Fix race condition when dealing with large web socket messages