peer->buffer: increased buffer size to 4096. required recoding to avoid stack alloc problems.