extend logplex_drain_buffer API
extend logplex_drain_buffer API

allow to resize the buffer dynamically, which would be useful to support
an API similar to the tcpsyslog one.

mkrysiak/logplex,voidlock/logplex,srid/logplex