]> git.meshlink.io Git - meshlink/commit
Reduce UTCP memory usage.
authorGuus Sliepen <guus@meshlink.io>
Sat, 10 Apr 2021 22:36:30 +0000 (00:36 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sat, 10 Apr 2021 22:36:30 +0000 (00:36 +0200)
commit57d7814d3c211a46f6a6fe7dd995307cb9a6f41e
treec5d6abb44bfd07d25f7640937440379a1bce83b2
parentde79d7dafdf1430176f5e539c9a026baa8452d6f
Reduce UTCP memory usage.

Don't allocate a send buffer by default, since an application might only
want to receive data. Also try to shrink the send and receive buffers on
channel close, or even free them if the buffers are empty.
src/utcp.c
src/utcp_priv.h