Now that the stream-interface properly handles synchonous connects, there
is no more reason for subscribing and doing nothing.
return SF_ERR_RESOURCE;
}
- fd_want_send(fd); /* for connect status, proxy protocol or SSL */
return SF_ERR_NONE; /* connection is OK */
}
conn_ctrl_init(conn); /* registers the FD */
fdtab[fd].linger_risk = 1; /* close hard if needed */
- if (conn->flags & CO_FL_WAIT_L4_CONN)
- fd_cant_recv(fd); // we'll change this once the connection is validated
+ if (conn->flags & CO_FL_WAIT_L4_CONN) {
+ fd_want_send(fd);
+ fd_cant_send(fd);
+ }
if (conn_xprt_init(conn) < 0) {
conn_full_close(conn);
return SF_ERR_RESOURCE;
}
- fd_want_send(fd); /* for connect status, proxy protocol or SSL */
return SF_ERR_NONE; /* connection is OK */
}
conn_ctrl_init(conn); /* registers the FD */
fdtab[fd].linger_risk = 0; /* no need to disable lingering */
- if (conn->flags & CO_FL_WAIT_L4_CONN)
- fd_cant_recv(fd); // we'll change this once the connection is validated
+ if (conn->flags & CO_FL_WAIT_L4_CONN) {
+ fd_want_send(fd);
+ fd_cant_send(fd);
+ }
if (conn_xprt_init(conn) < 0) {
conn_full_close(conn);
return SF_ERR_RESOURCE;
}
- fd_want_send(fd); /* for connect status, proxy protocol or SSL */
return SF_ERR_NONE; /* connection is OK */
}