Packages always end in \n, so this way we make sure we have a complete package to unserialize. Before this patch, some long packages that were divided in chunks weren't received correctly.