Fix child hang after client disconnect due to unsigned size_t