make bufferevent_getwatermark api more robust
Merge pull request #168 from ufo2243/master

make bufferevent_getwatermark api more robust