>Yes, you can do it. I don't think that ENOMEM is the right return value
>here - ECONNREFUSED is more reasonable, IMHO. But yes, we need to limit
[..]
err = -ECONNREFUSED;
^^^^^^^^^^^^^^^^^^^^
if (other == NULL || other->dead || other->state != TCP_LISTEN)
goto out;
/* Fail if the listen backlog is just full. -arca */
if (other->ack_backlog >= other->max_ack_backlog)
goto out;
^^^^^^^^
[..]
I am just using -ECONNREFUSED ;).
Andrea Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/