Set high watermark at 256k

This commit is contained in:
Tony Garnock-Jones 2011-01-02 14:51:31 -05:00
parent 544a719d21
commit 61c45e9a12
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ IOHandle *new_iohandle(int fd) {
(everrorcb) error_isr,
h);
PCHECK(h->io, "bufferevent_new");
bufferevent_setwatermark(h->io, EV_READ, 0, 256 * 1024);
h->eof = 0;
iohandle_clear_error(h);
return h;