use Socket qw'SOL_SOCKET SO_RCVLOWAT'; ... setsockopt($clientSock,SOL_SOCKET,SO_RCVLOWAT,BUFSIZE) or die "Failed to set SO_RCVLOWAT on socket: $!";