* used to kill the connection ASAP (eg: limit abuse). In this
* case we send a goaway to close the connection.
*/
+ if (!(h2s->flags & H2_SF_RST_SENT) &&
+ h2s_send_rst_stream(h2s->h2c, h2s) <= 0)
+ return;
+
if (!(h2s->flags & H2_SF_OUTGOING_DATA) &&
!(h2s->h2c->flags & (H2_CF_GOAWAY_SENT|H2_CF_GOAWAY_FAILED)) &&
h2c_send_goaway_error(h2s->h2c, h2s) <= 0)
return;
- if (h2s_send_rst_stream(h2s->h2c, h2s) <= 0)
- return;
-
if (h2s->h2c->mbuf->o && !(cs->conn->flags & CO_FL_XPRT_WR_ENA))
conn_xprt_want_send(cs->conn);
* used to kill the connection ASAP (eg: limit abuse). In this
* case we send a goaway to close the connection.
*/
+ if (!(h2s->flags & H2_SF_RST_SENT) &&
+ h2s_send_rst_stream(h2s->h2c, h2s) <= 0)
+ return;
+
if (!(h2s->flags & H2_SF_OUTGOING_DATA) &&
!(h2s->h2c->flags & (H2_CF_GOAWAY_SENT|H2_CF_GOAWAY_FAILED)) &&
h2c_send_goaway_error(h2s->h2c, h2s) <= 0)
return;
- if (!(h2s->flags & H2_SF_RST_SENT) &&
- h2s_send_rst_stream(h2s->h2c, h2s) <= 0)
- return;
-
h2s->st = H2_SS_CLOSED;
}