Set max buffer to Math.pow(2,19)
Merge pull request #774 from bootstraponline/max_buffer

Set max buffer to Math.pow(2,19)