mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-15 12:01:12 -04:00
MINOR: h2: new function h2c_error to mark an error on the connection
This one sets the error code in h2c->errcode and changes the connection's stat to H2_CS_ERROR.
This commit is contained in:
parent
5b5e68741a
commit
741d6df870
1 changed files with 7 additions and 0 deletions
|
|
@ -373,6 +373,13 @@ static inline int h2c_mux_busy(const struct h2c *h2c, const struct h2s *h2s)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* marks an error on the connection */
|
||||
static inline void h2c_error(struct h2c *h2c, enum h2_err err)
|
||||
{
|
||||
h2c->errcode = err;
|
||||
h2c->st0 = H2_CS_ERROR;
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************/
|
||||
/* functions below are I/O callbacks from the connection */
|
||||
|
|
|
|||
Loading…
Reference in a new issue