It's annoying that handshake handlers remove themselves from the
connection flags when they fail because there is no way to tell
which one fails. So now we only remove them when they succeed.
fail:
conn_sock_stop_both(conn);
conn->flags |= CO_FL_ERROR;
- conn->flags &= ~flag;
return 0;
}
out_error:
/* Write error on the file descriptor */
conn->flags |= CO_FL_ERROR;
- conn->flags &= ~flag;
return 0;
out_wait:
/* Fail on all other handshake errors */
conn->flags |= CO_FL_ERROR;
- conn->flags &= ~flag;
return 0;
}
out_error:
/* Write error on the file descriptor */
conn->flags |= CO_FL_ERROR;
- conn->flags &= ~flag;
return 0;
out_wait: