fix missing clientLength bug in server.c