Don't call realloc on every message.
Keep separate variables for buffer length and message length for that. Fix bug with clearing previous buffer content. Reduce logging somewhat.
Authored by: dannybackx 2022-07-03
Parent: [r18]
Child: [r20]