Switch to bufferevent.