$|=1; # and perhaps after your accept() call: $new_sock->autoflush;