Use destroy buffer size on websocket transport method as well
Merge pull request #1346 from DeadAlready/0.9-security-fix

Use destroy buffer size on websocket transport method as well