Return 413 in case a packet is too large

Increase recbuf size to 16 KB. Calculate each packet's size and return
413 if the packet is larger than 8 KB.