Add option to set buffer size in collectors

Add option to set socket buffer size in collectors. ```setsockopt()```
will be called to set kernel buffer size.