To prevent this, check for ```cnt == UV_ENOBUFS``` and do nothing:
```c
if (cnt == UV_EOF) {
  eof = true;
} else if (cnt == UV_ENOBUFS) {
  // Under Unix on could reallocate.
} else {
     ...
}
```