mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 14:27:30 +00:00
MINOR: stream-int: don't touch polling anymore on shutdown
Not only it's become totally useless with muxes, in addition it's dangerous to play with the mux's FD while shutting a stream down for writes. It's already done *if necessary* by the cs_shutw() code at the mux layer. Fortunately it doesn't seem to have any impact, most likely the polling updates used to immediately revert this operation.
This commit is contained in:
parent
5a1d439225
commit
a5ea751922
@ -1008,7 +1008,6 @@ static void stream_int_shutr_conn(struct stream_interface *si)
|
|||||||
static void stream_int_shutw_conn(struct stream_interface *si)
|
static void stream_int_shutw_conn(struct stream_interface *si)
|
||||||
{
|
{
|
||||||
struct conn_stream *cs = __objt_cs(si->end);
|
struct conn_stream *cs = __objt_cs(si->end);
|
||||||
struct connection *conn = cs->conn;
|
|
||||||
struct channel *ic = si_ic(si);
|
struct channel *ic = si_ic(si);
|
||||||
struct channel *oc = si_oc(si);
|
struct channel *oc = si_oc(si);
|
||||||
|
|
||||||
@ -1056,14 +1055,9 @@ static void stream_int_shutw_conn(struct stream_interface *si)
|
|||||||
*/
|
*/
|
||||||
cs_shutw(cs, CS_SHW_NORMAL);
|
cs_shutw(cs, CS_SHW_NORMAL);
|
||||||
|
|
||||||
if (!(ic->flags & (CF_SHUTR|CF_DONT_READ))) {
|
if (!(ic->flags & (CF_SHUTR|CF_DONT_READ)))
|
||||||
/* OK just a shutw, but we want the caller
|
|
||||||
* to disable polling on this FD if exists.
|
|
||||||
*/
|
|
||||||
conn_cond_update_polling(conn);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case SI_ST_CON:
|
case SI_ST_CON:
|
||||||
|
Loading…
Reference in New Issue
Block a user