use const instead of static for constants
control connection buffer can be small
const for arrays or strings does not work
fill the receive buffer before writing to disk
allocate the data buffer only once and keep it